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 23:09:55 +12:00
committed by GitHub
parent bd0e25f3f5
commit 465fe18a89
4 changed files with 37 additions and 1 deletions

View File

@@ -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();