Skip to content
Snippets Groups Projects
Commit eeb18959 authored by Beat Küng's avatar Beat Küng
Browse files

i2c_posix: fix simulate variable cannot be assigned on QuRT

parent 46a72871
No related branches found
No related tags found
No related merge requests found
......@@ -49,9 +49,15 @@
#include <fcntl.h>
#include <sys/ioctl.h>
#ifdef __PX4_QURT
#define PX4_SIMULATE_I2C 1
#else
#define PX4_SIMULATE_I2C 0
#endif
static constexpr const int simulate = PX4_SIMULATE_I2C;
namespace device
{
......@@ -104,10 +110,6 @@ I2C::init()
return ret;
}
#ifdef __PX4_QURT
simulate = true;
#endif
if (simulate) {
_fd = 10000;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment