mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-13 06:13:35 +00:00
Remove unnecessary nesting
This commit is contained in:
parent
1a06f88dfb
commit
975d443ccb
@ -82,7 +82,7 @@ int32_t ExternalNotificationModule::runOnce()
|
|||||||
{
|
{
|
||||||
if (!moduleConfig.external_notification.enabled) {
|
if (!moduleConfig.external_notification.enabled) {
|
||||||
return INT32_MAX; // we don't need this thread here...
|
return INT32_MAX; // we don't need this thread here...
|
||||||
} else {
|
}
|
||||||
|
|
||||||
bool isPlaying = rtttl::isPlaying();
|
bool isPlaying = rtttl::isPlaying();
|
||||||
#ifdef HAS_I2S
|
#ifdef HAS_I2S
|
||||||
@ -195,7 +195,6 @@ int32_t ExternalNotificationModule::runOnce()
|
|||||||
}
|
}
|
||||||
|
|
||||||
return EXT_NOTIFICATION_DEFAULT_THREAD_MS;
|
return EXT_NOTIFICATION_DEFAULT_THREAD_MS;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ExternalNotificationModule::wantPacket(const meshtastic_MeshPacket *p)
|
bool ExternalNotificationModule::wantPacket(const meshtastic_MeshPacket *p)
|
||||||
|
Loading…
Reference in New Issue
Block a user