mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-05 22:24:47 +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;
|
||||
}
|
||||
|
||||
/* set some sensible defaults */
|
||||
set_fade_speed(25);
|
||||
|
||||
/* turn off by default */
|
||||
play_script(BLACK);
|
||||
|
||||
@@ -433,6 +436,7 @@ blinkm_main(int argc, char *argv[])
|
||||
|
||||
if (OK != g_blinkm->init()) {
|
||||
delete g_blinkm;
|
||||
g_blinkm = nullptr;
|
||||
errx(1, "init failed");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user