mirror of
https://github.com/pelgraine/Meck.git
synced 2026-07-30 05:12:40 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user