1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-30 03:26:13 +01:00

Update interrupt handling for better waveforms

This commit is contained in:
David Cutting 2020-07-14 19:04:55 -06:00
parent c67fa12e80
commit 9e86d5e93c

View File

@ -38,8 +38,10 @@ DCCService* progTrack = DCCService::Create_Pololu_MC33926Shield_Prog();
#endif
void waveform_IrqHandler() {
mainTrack->interruptHandler();
progTrack->interruptHandler();
bool mainInterrupt = mainTrack->interrupt1();
bool progInterrupt = progTrack->interrupt1();
if(mainInterrupt) mainTrack->interrupt2();
if(progInterrupt) progTrack->interrupt2();
}
#if defined(ARDUINO_ARCH_SAMD)