Skip to content

Conversation

@csrutil
Copy link
Contributor

@csrutil csrutil commented Jan 6, 2026

ESP32's internal RTC drifts during light sleep due to the 150kHz RC oscillator. When the device clock runs ahead, the previous logic rejected correct time from mobile because "clock cannot go backwards". This prevented fixing drifted clocks.

Removed the forward-only restriction from both clock sync and time commands to allow syncing to the correct time regardless of direction.

ESP32's internal RTC drifts during light sleep due to the 150kHz RC oscillator.
When the device clock runs ahead, the previous logic rejected correct time from
mobile because "clock cannot go backwards". This prevented fixing drifted clocks.

Removed the forward-only restriction from both `clock sync` and `time` commands
to allow syncing to the correct time regardless of direction.
@IoTThinks
Copy link

I have tried similar approach before with "clock fsync".
The clock is synced and shown correctly internally in ESP32.

However, when I login into the repeater, the Status still shows old time for Last Login.
I need to reboot the repeater to see the synced Last Login.

Have you managed to figure out / fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants