File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ SET "LOGCOUNTER=0"
1515SET  " BPS_RESET = 0" 
1616
1717@ REM  FIXME: Determine mcu from PlatformIO variant, this is unmaintainable.
18- SET  " S3 = s3 v3 t-deck wireless-paper wireless-tracker station-g2 unphone t-eth-elite tlora-pager mesh-tab dreamcatcher ESP32-S3-Pico seeed-sensecap-indicator heltec_capsule_sensor_v3 vision-master icarus tracksenger elecrow-adv" 
18+ SET  " S3 = s3 v3 t-deck wireless-paper wireless-tracker station-g2 unphone t-eth-elite tlora-pager mesh-tab dreamcatcher ESP32-S3-Pico seeed-sensecap-indicator heltec_capsule_sensor_v3 vision-master icarus tracksenger elecrow-adv heltec-v4 " 
1919SET  " C3 = esp32c3" 
2020@ REM  FIXME: Determine flash size from PlatformIO variant, this is unmaintainable.
2121SET  " BIGDB_8MB = crowpanel-esp32s3 heltec_capsule_sensor_v3 heltec-v3 heltec-vision-master-e213 heltec-vision-master-e290 heltec-vision-master-t190 heltec-wireless-paper heltec-wireless-tracker heltec-wsl-v3 icarus seeed-xiao-s3 tbeam-s3-core tracksenger" 
2222SET  " MUIDB_8MB = picomputer-s3 unphone seeed-sensecap-indicator" 
23- SET  " BIGDB_16MB = t-deck mesh-tab t-energy-s3 dreamcatcher ESP32-S3-Pico m5stack-cores3 station-g2 t-eth-elite tlora-pager t-watch-s3 elecrow-adv" 
23+ SET  " BIGDB_16MB = t-deck mesh-tab t-energy-s3 dreamcatcher ESP32-S3-Pico m5stack-cores3 station-g2 t-eth-elite tlora-pager t-watch-s3 elecrow-adv heltec-v4 " 
2424
2525GOTO  getopts
2626:help 
Original file line number Diff line number Diff line change 11#include  " InputBroker.h" 
22#include  " PowerFSM.h"   //  needed for event trigger
3+ #include  " configuration.h" 
4+ #include  " modules/ExternalNotificationModule.h" 
35
46InputBroker *inputBroker = nullptr ;
57
@@ -48,6 +50,12 @@ void InputBroker::processInputEventQueue()
4850int  InputBroker::handleInputEvent (const  InputEvent *event)
4951{
5052    powerFSM.trigger (EVENT_INPUT); //  todo: not every input should wake, like long hold release
53+ 
54+     if  (event && event->inputEvent  != INPUT_BROKER_NONE && externalNotificationModule &&
55+         moduleConfig.external_notification .enabled ) {
56+         externalNotificationModule->stopNow ();
57+     }
58+ 
5159    this ->notifyObservers (event);
5260    return  0 ;
5361}
Original file line number Diff line number Diff line change @@ -325,6 +325,10 @@ void ExternalNotificationModule::stopNow()
325325    drv.stop ();
326326#endif 
327327
328+     //  Prevent the state machine from immediately re-triggering outputs after a manual stop.
329+     isNagging = false ;
330+     nagCycleCutoff = UINT32_MAX;
331+ 
328332#ifdef  HAS_I2S
329333    //  GPIO0 is used as mclk for I2S audio and set to OUTPUT by the sound library
330334    //  T-Deck uses GPIO0 as trackball button, so restore the mode
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments