Keep receiver timesync fast and extend sender fast window

- Receiver now sends time sync every 60s indefinitely (mains powered)
- Sender stays in fast timesync listen mode for first 60s even with RTC
This commit is contained in:
2026-02-03 22:28:36 +01:00
parent cd4c99f125
commit 43893c24d1
2 changed files with 3 additions and 6 deletions

View File

@@ -123,7 +123,7 @@ void receiver_loop() {
}
if (time_to_send_timesync()) {
time_send_timesync(self_short_id); // 60s for first 10 min, then hourly if RTC is present
time_send_timesync(self_short_id); // always every 60s (receiver is mains-powered)
}
mqtt_loop();
@@ -302,7 +302,7 @@ inline constexpr uint16_t EXPECTED_SENDER_IDS[NUM_SENDERS] = { 0xF19C };
- Enable/disable with `ENABLE_DS3231` in `include/config.h`.
- Receiver time sync packets set the RTC.
- On boot, if no LoRa time sync has arrived yet, the sender uses the RTC time as the initial `ts_utc`.
- When no RTC is present or enabled, the receiver keeps sending time sync every 60 seconds.
- Receiver keeps sending time sync every 60 seconds.
## Build Environments
- `lilygo-t3-v1-6-1`: production build (debug on)