Skip to content

Commit 8d1b9c9

Browse files
authored
Merge pull request #8531 from meshtastic/master
Master
2 parents 538c05a + 597fa0b commit 8d1b9c9

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

bin/device-install.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ SET "LOGCOUNTER=0"
1515
SET "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"
1919
SET "C3=esp32c3"
2020
@REM FIXME: Determine flash size from PlatformIO variant, this is unmaintainable.
2121
SET "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"
2222
SET "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

2525
GOTO getopts
2626
:help

src/input/InputBroker.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "InputBroker.h"
22
#include "PowerFSM.h" // needed for event trigger
3+
#include "configuration.h"
4+
#include "modules/ExternalNotificationModule.h"
35

46
InputBroker *inputBroker = nullptr;
57

@@ -48,6 +50,12 @@ void InputBroker::processInputEventQueue()
4850
int 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
}

src/modules/ExternalNotificationModule.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)