fix: LED-Init an den Anfang von app_task verschieben (Boot-Reihenfolge Spec §3.4)
nl_led_init(board) läuft jetzt direkt nach nl_flash_init(), noch vor dem Reset-Counter/Settings/State-Log-Scan, damit die LEDs von Anfang an dunkel bleiben statt erst nach dem Flash-Scan initialisiert zu werden.
This commit is contained in:
+1
-1
@@ -91,6 +91,7 @@ static void app_task(void *arg)
|
|||||||
|
|
||||||
(void)arg;
|
(void)arg;
|
||||||
nl_flash_init();
|
nl_flash_init();
|
||||||
|
nl_led_init(board); /* hardware init first (spec 3.4): LEDs dark before any flash/state scan */
|
||||||
nl_resetcnt_init(base + NL_FL_RESETCNT);
|
nl_resetcnt_init(base + NL_FL_RESETCNT);
|
||||||
boots = nl_resetcnt_boot();
|
boots = nl_resetcnt_boot();
|
||||||
nl_settings_init(base + NL_FL_SETTINGS_A, base + NL_FL_SETTINGS_B);
|
nl_settings_init(base + NL_FL_SETTINGS_A, base + NL_FL_SETTINGS_B);
|
||||||
@@ -101,7 +102,6 @@ static void app_task(void *arg)
|
|||||||
s_settings.power_on_behaviour, s_settings.fade_in_ms, s_settings.fade_out_ms,
|
s_settings.power_on_behaviour, s_settings.fade_in_ms, s_settings.fade_out_ms,
|
||||||
have_last ? "yes" : "no");
|
have_last ? "yes" : "no");
|
||||||
|
|
||||||
nl_led_init(board);
|
|
||||||
cfg.ct_min = board->ct_min;
|
cfg.ct_min = board->ct_min;
|
||||||
cfg.ct_max = board->ct_max;
|
cfg.ct_max = board->ct_max;
|
||||||
cfg.output = led_out;
|
cfg.output = led_out;
|
||||||
|
|||||||
Reference in New Issue
Block a user