Files
meshtastic_firmware/src/mesh
Thomas GöttgensandGitHub 38074f584f Fix SENSOR power saving deep sleep truncating TX and skipping sleep on failed reads (#10939)
* Fix SENSOR power saving deep sleep behavior

Deep sleep could be entered while a telemetry packet was still queued
or on air, truncating the transmission. canSleep() gained a deepSleep
parameter and now vetoes in that case; light sleep is unchanged.
Telemetry modules defer a pending deep sleep (bounded to 30s) until the
radio is idle and no longer let the sensor polling interval override
the 5s pre-sleep grace period. A failed sensor read still arms deep
sleep instead of leaving the node awake for a full telemetry interval.

Fixes #10890
Fixes #10932

* Deduplicate telemetry deep sleep deferral logic

Move the radio-busy deferral and its counter into BaseTelemetryModule
and add an isPowerSavingSensor() helper. Removes the telemetry-specific
counter from OSThread. The sleep arming block stays per module because
it needs protected OSThread members not visible to the base class.
2026-07-08 07:30:46 -05:00
..
2026-07-01 19:01:27 -05:00
2026-07-07 06:34:22 -05:00
2026-07-01 19:01:27 -05:00
2026-02-19 07:16:33 -06:00
2026-07-01 19:01:27 -05:00
2026-06-27 08:20:51 -05:00
2026-07-01 19:01:27 -05:00
2026-07-01 19:01:27 -05:00
2026-05-28 19:39:41 -05:00
2026-07-01 19:01:27 -05:00
2026-05-28 19:39:41 -05:00
2026-06-30 12:44:25 -05:00
2026-06-19 19:56:24 -05:00
2026-06-19 19:52:58 -05:00
2026-07-01 19:01:27 -05:00
2026-06-19 19:52:58 -05:00
2026-07-01 19:01:27 -05:00
2026-07-01 19:01:27 -05:00
2023-01-21 21:23:24 +01:00
2026-06-30 12:44:25 -05:00
2026-06-30 12:44:25 -05:00
2026-05-28 19:39:41 -05:00
2026-05-28 19:39:41 -05:00
2026-07-01 19:01:27 -05:00
2026-07-01 19:01:27 -05:00
2026-05-28 19:39:41 -05:00
2026-06-10 18:37:14 +01:00
2026-07-01 19:01:27 -05:00
2026-07-01 19:01:27 -05:00
2026-07-01 19:01:27 -05:00
2026-07-01 19:01:27 -05:00