mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-13 08:32:08 +00:00
Get sleep side effect out of DEBUG_MSG()
This commit is contained in:
parent
fc0eb7de46
commit
f1ed691fd3
@ -289,6 +289,7 @@ void enableModemSleep()
|
|||||||
config.max_freq_mhz = CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ;
|
config.max_freq_mhz = CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ;
|
||||||
config.min_freq_mhz = 20; // 10Mhz is minimum recommended
|
config.min_freq_mhz = 20; // 10Mhz is minimum recommended
|
||||||
config.light_sleep_enable = false;
|
config.light_sleep_enable = false;
|
||||||
DEBUG_MSG("Sleep request result %x\n", esp_pm_configure(&config));
|
int rv = esp_pm_configure(&config);
|
||||||
|
DEBUG_MSG("Sleep request result %x\n", rv);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user