mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-05 14:17:20 +08:00
Force the fade speed to something sensible. Deal better with failed probes.
This commit is contained in:
@@ -178,6 +178,9 @@ BlinkM::init()
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* set some sensible defaults */
|
||||||
|
set_fade_speed(25);
|
||||||
|
|
||||||
/* turn off by default */
|
/* turn off by default */
|
||||||
play_script(BLACK);
|
play_script(BLACK);
|
||||||
|
|
||||||
@@ -433,6 +436,7 @@ blinkm_main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (OK != g_blinkm->init()) {
|
if (OK != g_blinkm->init()) {
|
||||||
delete g_blinkm;
|
delete g_blinkm;
|
||||||
|
g_blinkm = nullptr;
|
||||||
errx(1, "init failed");
|
errx(1, "init failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user