1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-23 08:06:13 +01:00

ESP32 update for reminders

This commit is contained in:
Asbelos 2023-11-28 19:57:14 +00:00
parent 07fd4bc309
commit 3f4099520a

View File

@ -283,15 +283,15 @@ void DCCWaveform::schedulePacket(const byte buffer[], byte byteCount, byte repea
} }
} }
bool DCCWaveform::getPacketPending() { bool DCCWaveform::isReminderWindowOpen() {
if(isMainTrack) { if(isMainTrack) {
if (rmtMainChannel == NULL) if (rmtMainChannel == NULL)
return true; return false;
return rmtMainChannel->busy(); return !rmtMainChannel->busy();
} else { } else {
if (rmtProgChannel == NULL) if (rmtProgChannel == NULL)
return true; return false;
return rmtProgChannel->busy(); return !rmtProgChannel->busy();
} }
} }
void IRAM_ATTR DCCWaveform::loop() { void IRAM_ATTR DCCWaveform::loop() {