mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-26 17:46:14 +01:00
Update interrupt handling for better waveforms
This commit is contained in:
parent
c67fa12e80
commit
9e86d5e93c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user