File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -348,8 +348,8 @@ static ICACHE_RAM_ATTR void timer1Interrupt() {
348
348
if (WaveformMode::EXPIRES == wave.mode && wave.nextEventCcy == wave.expiryCcy &&
349
349
static_cast <int32_t >(overshootCcys) >= 0 ) {
350
350
// Disable any waveforms that are done
351
- waveform.enabled &= ~ pinBit;
352
- busyPins &= ~ pinBit;
351
+ waveform.enabled ^= pinBit;
352
+ busyPins ^= pinBit;
353
353
}
354
354
else {
355
355
if (static_cast <int32_t >(overshootCcys) >= 0 ) {
@@ -371,7 +371,7 @@ static ICACHE_RAM_ATTR void timer1Interrupt() {
371
371
}
372
372
else {
373
373
nextEdgeCcy = wave.nextPeriodCcy ;
374
- waveform.states &= ~ pinBit;
374
+ waveform.states ^= pinBit;
375
375
if (16 == pin) {
376
376
GP16O = 0 ;
377
377
}
@@ -416,7 +416,7 @@ static ICACHE_RAM_ATTR void timer1Interrupt() {
416
416
}
417
417
418
418
if (static_cast <int32_t >(wave.nextEventCcy - isrTimeoutCcy) >= 0 ) {
419
- busyPins &= ~ pinBit;
419
+ busyPins ^= pinBit;
420
420
if (static_cast <int32_t >(waveform.nextEventCcy - wave.nextEventCcy ) > 0 ) {
421
421
waveform.nextEventCcy = wave.nextEventCcy ;
422
422
waveform.nextPin = pin;
You can’t perform that action at this time.
0 commit comments