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
@@ -429,6 +429,11 @@ void loop() {
#if defined(NRF52_PLATFORM)
if (the_mesh.getNodePrefs()->powersaving_enabled && the_mesh.isDualRadioActive()
&& !morse_timing) board.prepareProfileIdleCycle();
#endif
#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())