Add ESP32 clock selection and bounded power test controls

This commit is contained in:
mikecarper committed 2026-10-21 21:06:42 -07:00
1 parent 11dbca377c
commit 6e599d1709
33 files changed
+4028 -2430

No files matched your search

+5
View File
@@ -655,6 +655,11 @@ void loop() {
#endif
// Report the guard that really stopped this iteration, without probing
// later guards or changing their short-circuit hardware access.
#if defined(ESP32_PLATFORM)
board.servicePowerTestControls();
mesh::esp32::serviceCpuFrequencyPolicy(board, the_mesh.getNodePrefs()->cpu_freq_mhz,
the_mesh.getNodePrefs()->powersaving_enabled != 0, millis());
#endif
const auto sleep_guard = [](bool allowed, mesh::powerdiag::Reason reason) {
if (!allowed && mesh::powerdiag::enabled())
mesh::powerdiag::decision(mesh::powerdiag::mask(reason), millis());