Browse Source

Baro sim: Initialize struct

sbg
Lorenz Meier 9 years ago
parent
commit
fc0ff0d2f6
  1. 3
      src/platforms/posix/drivers/barosim/baro.cpp

3
src/platforms/posix/drivers/barosim/baro.cpp

@ -245,6 +245,7 @@ int @@ -245,6 +245,7 @@ int
BAROSIM::init()
{
int ret;
struct baro_report brp = {};
//PX4_DEBUG("BAROSIM::init");
ret = VirtDevObj::init();
@ -263,8 +264,6 @@ BAROSIM::init() @@ -263,8 +264,6 @@ BAROSIM::init()
goto out;
}
struct baro_report brp;
/* do a first measurement cycle to populate reports with valid data */
_measure_phase = 0;

Loading…
Cancel
Save