mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 01:33:34 +08:00
POSIX sim: Remove unused error variables
This commit is contained in:
@@ -354,12 +354,6 @@ MEASAirspeedSim::voltage_correction(float &diff_press_pa, float &temperature)
|
|||||||
namespace meas_airspeed_sim
|
namespace meas_airspeed_sim
|
||||||
{
|
{
|
||||||
|
|
||||||
/* oddly, ERROR is not defined for c++ */
|
|
||||||
#ifdef ERROR
|
|
||||||
# undef ERROR
|
|
||||||
#endif
|
|
||||||
const int ERROR = -1;
|
|
||||||
|
|
||||||
MEASAirspeedSim *g_dev = nullptr;
|
MEASAirspeedSim *g_dev = nullptr;
|
||||||
|
|
||||||
int start(int i2c_bus);
|
int start(int i2c_bus);
|
||||||
|
|||||||
@@ -72,12 +72,6 @@ enum BAROSIM_BUS {
|
|||||||
BAROSIM_BUS_SIM_EXTERNAL
|
BAROSIM_BUS_SIM_EXTERNAL
|
||||||
};
|
};
|
||||||
|
|
||||||
/* oddly, ERROR is not defined for c++ */
|
|
||||||
#ifdef ERROR
|
|
||||||
# undef ERROR
|
|
||||||
#endif
|
|
||||||
static const int ERROR = -1;
|
|
||||||
|
|
||||||
/* helper macro for handling report buffer indices */
|
/* helper macro for handling report buffer indices */
|
||||||
#define INCREMENT(_x, _lim) do { __typeof__(_x) _tmp = _x+1; if (_tmp >= _lim) _tmp = 0; _x = _tmp; } while(0)
|
#define INCREMENT(_x, _lim) do { __typeof__(_x) _tmp = _x+1; if (_tmp >= _lim) _tmp = 0; _x = _tmp; } while(0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user