T-Watch changes:

CPUPowerManager.h — S3 variant, CPU_FREQ_BOOST capped to 80 MHz.
main.cpp — locked-loop throttle extended to the watches via the two MECK_TWATCH guard additions.
This commit is contained in:
pelgraine
2026-07-12 20:07:18 +10:00
parent a5dacc3db8
commit 2b31e56e4c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -3083,7 +3083,7 @@ void loop() {
// is active. The mesh radio has its own FIFO so packets are buffered;
// 50 ms yield means the loop still runs 20×/sec which is more than enough
// to drain the radio FIFO before overflow.
#if defined(LilyGo_T5S3_EPaper_Pro) || defined(LilyGo_TDeck_Pro)
#if defined(LilyGo_T5S3_EPaper_Pro) || defined(LilyGo_TDeck_Pro) || defined(MECK_TWATCH)
{
static bool wasLocked = false;
bool nowLocked = ui_task.isLocked();
@@ -4516,7 +4516,7 @@ void loop() {
// The RTOS idle task executes WFI (wait-for-interrupt) during delay(),
// dramatically reducing CPU power draw. 50 ms gives 20 loop cycles/sec
// which is ample for LoRa packet reception (radio has hardware FIFO).
#if defined(LilyGo_T5S3_EPaper_Pro) || defined(LilyGo_TDeck_Pro)
#if defined(LilyGo_T5S3_EPaper_Pro) || defined(LilyGo_TDeck_Pro) || defined(MECK_TWATCH)
if (ui_task.isLocked()) {
delay(50);
}
+1 -1
View File
@@ -20,7 +20,7 @@
#endif
#ifndef CPU_FREQ_BOOST
#define CPU_FREQ_BOOST 240 // MHz — heavy processing
#define CPU_FREQ_BOOST 80 // MHz -- S3: no map screen, so cap boost to idle to save power
#endif
#ifndef CPU_FREQ_LOW_POWER