mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-02-18 15:06:03 +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
|
#endif
|
||||||
|
|
||||||
void waveform_IrqHandler() {
|
void waveform_IrqHandler() {
|
||||||
mainTrack->interruptHandler();
|
bool mainInterrupt = mainTrack->interrupt1();
|
||||||
progTrack->interruptHandler();
|
bool progInterrupt = progTrack->interrupt1();
|
||||||
|
if(mainInterrupt) mainTrack->interrupt2();
|
||||||
|
if(progInterrupt) progTrack->interrupt2();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(ARDUINO_ARCH_SAMD)
|
#if defined(ARDUINO_ARCH_SAMD)
|
||||||
|
Loading…
Reference in New Issue
Block a user