Dismiss ExternalNotification nagging on InkHUD button press (#7056)

* Expose ExternalNotification::isNagging

* Dismiss external notification on button press
This commit is contained in:
todd-herbert
2025-06-16 06:09:55 -05:00
committed by GitHub
co-authored by GitHub
parent bd0e25f3f5
commit 465fe18a89
4 changed files with 37 additions and 1 deletions
@@ -293,6 +293,12 @@ bool ExternalNotificationModule::getExternal(uint8_t index)
return externalCurrentState[index];
}
// Allow other firmware components to determine whether a notification is ongoing
bool ExternalNotificationModule::nagging()
{
return isNagging;
}
void ExternalNotificationModule::stopNow()
{
rtttl::stop();
+2
View File
@@ -40,6 +40,8 @@ class ExternalNotificationModule : public SinglePortModule, private concurrency:
void setMute(bool mute) { isMuted = mute; }
bool getMute() { return isMuted; }
bool nagging();
void stopNow();
void handleGetRingtone(const meshtastic_MeshPacket &req, meshtastic_AdminMessage *response);