Compare commits

...

5 Commits

Author SHA1 Message Date
Jonathan Bennett
20aae2bb9f Merge branch 'develop' into jp-bennett-patch-1 2026-02-07 14:19:22 -06:00
Austin
39139cc2ea RPM: Include meshtasticd-start.sh (#9561) 2026-02-07 11:13:01 -05:00
Jonathan Bennett
846d986358 Merge branch 'develop' into jp-bennett-patch-1 2026-02-06 19:59:28 -06:00
Jonathan Bennett
0833c0f0c8 Merge branch 'develop' into jp-bennett-patch-1 2026-02-06 19:02:26 -06:00
Jonathan Bennett
6d9fdcbb35 Make LED_POWER blip even in critical battery 2026-02-05 21:19:52 -06:00
2 changed files with 5 additions and 6 deletions

View File

@@ -157,6 +157,7 @@ fi
%license LICENSE
%doc README.md
%{_bindir}/meshtasticd
%{_bindir}/meshtasticd-start.sh
%dir %{_localstatedir}/lib/meshtasticd
%{_udevrulesdir}/99-meshtasticd-udev.rules
%dir %{_sysconfdir}/meshtasticd

View File

@@ -93,19 +93,17 @@ int32_t StatusLEDModule::runOnce()
my_interval = 250;
if (POWER_LED_starttime + 2000 < millis()) {
doing_fast_blink = false;
CHARGE_LED_state = LED_STATE_OFF;
}
} else {
CHARGE_LED_state = LED_STATE_OFF;
}
}
} else {
if (doing_fast_blink) {
if (power_state != charging && power_state != charged && !doing_fast_blink) {
if (CHARGE_LED_state == LED_STATE_ON) {
CHARGE_LED_state = LED_STATE_OFF;
doing_fast_blink = false;
my_interval = 999;
} else {
CHARGE_LED_state = LED_STATE_ON;
doing_fast_blink = true;
my_interval = 1;
}
}