mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 19:07:45 +08:00
Fixed adcsim
Was missing call of base class init(). Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -239,6 +239,12 @@ adcsim_main(int argc, char *argv[])
|
|||||||
PX4_ERR("couldn't allocate the ADCSIM driver");
|
PX4_ERR("couldn't allocate the ADCSIM driver");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret = g_adc->init();
|
||||||
|
if (ret != 0) {
|
||||||
|
PX4_ERR("ADCSIM init failed (%d)", ret);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argc > 1 && g_adc) {
|
if (argc > 1 && g_adc) {
|
||||||
|
|||||||
Reference in New Issue
Block a user