mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-24 16:01:53 +08:00
Baro sim: Initialize struct
This commit is contained in:
1 parent
fa2b1ffa14
commit
fc0ff0d2f6
1 file changed
+1
-2
@@ -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()
|
||||
goto out;
|
||||
}
|
||||
|
||||
struct baro_report brp;
|
||||
|
||||
/* do a first measurement cycle to populate reports with valid data */
|
||||
_measure_phase = 0;
|
||||
|
||||
|
||||
Reference in new issue
Block a user