just tiny tweak to minimise changes

This commit is contained in:
Gareth Coleman 2024-04-16 21:40:13 +01:00
parent 8a3322fbcb
commit 0632b96fcb

View File

@ -84,7 +84,10 @@ int32_t ExternalNotificationModule::runOnce()
if (!moduleConfig.external_notification.enabled) {
return INT32_MAX; // we don't need this thread here...
} else {
bool isPlaying = rtttl::isPlaying();
bool isPlaying = rtttl::isPlaying();This PR just tidies up support for the unPhone by using its [library](https://gitlab.com/hamishcunningham/unphonelibrary)
Also fixes incomplete syntax for the touchscreen driver invocation for XPT2046 when attached to a HX8357.
#ifdef HAS_I2S
isPlaying = rtttl::isPlaying() || audioThread->isPlaying();
#endif
@ -551,4 +554,4 @@ void ExternalNotificationModule::handleSetRingtone(const char *from_msg)
if (changed) {
nodeDB->saveProto(rtttlConfigFile, meshtastic_RTTTLConfig_size, &meshtastic_RTTTLConfig_msg, &rtttlConfig);
}
}
}