Skip to content

Commit 060a3bd

Browse files
authored
fix: Solve the lightsleep crash problem via disable lightsleep for indicator. (#5470)
1 parent 8df7a03 commit 060a3bd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/mesh/NodeDB.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ void NodeDB::initConfigIntervals()
542542

543543
config.display.screen_on_secs = default_screen_on_secs;
544544

545-
#if defined(T_WATCH_S3) || defined(T_DECK) || defined(RAK14014) || defined(SENSECAP_INDICATOR)
545+
#if defined(T_WATCH_S3) || defined(T_DECK) || defined(RAK14014)
546546
config.power.is_power_saving = true;
547547
config.display.screen_on_secs = 30;
548548
config.power.wait_bluetooth_secs = 30;

src/sleep.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,11 @@ esp_sleep_wakeup_cause_t doLightSleep(uint64_t sleepMsec) // FIXME, use a more r
336336
{
337337
// LOG_DEBUG("Enter light sleep");
338338

339+
//LORA_DIO1 is an extended IO pin. Setting it as a wake-up pin will cause problems, such as the indicator device not entering LightSleep.
340+
#if defined(SENSECAP_INDICATOR)
341+
return ESP_SLEEP_WAKEUP_TIMER;
342+
#endif
343+
339344
waitEnterSleep(false);
340345

341346
uint64_t sleepUsec = sleepMsec * 1000LL;

0 commit comments

Comments
 (0)