leds: default brightness 100%, matching pre-existing hardware behavior

ZEPHCORE_LED_DEFAULT_BRIGHTNESS_PCT was 10 on the branch this was
developed on (a local preference for that project's own compiles).
For general use it should default to what every PWM LED already ran
at before this setting existed: full brightness. Also fixes a stale
led_gate.h comment that still said "RAM-only, not persisted" after
brightness became a persisted NodePrefs field.
This commit is contained in:
ZephCore T096 committed 2026-09-28 22:14:11 +02:00
1 parent 268bd01b75
commit fd8de307f2
2 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -493,7 +493,7 @@ static inline void initNodePrefs(NodePrefs* prefs) {
prefs->leds_disabled = 0; // LEDs on
prefs->leds_radio_mode = LEDS_RADIO_TX; // activity LED on transmit, as before
prefs->leds_hb_mode = LEDS_HB_ALL; // heartbeat + unread, as before
prefs->led_brightness = ZEPHCORE_LED_DEFAULT_BRIGHTNESS_PCT; // 10%, new node
prefs->led_brightness = ZEPHCORE_LED_DEFAULT_BRIGHTNESS_PCT; // 100%, new node
prefs->powersaving_enabled = POWERSAVING_DEFAULT;
prefs->powersaving_set = 1;
prefs->gps_enabled = 0;