Deactivated interrupts before all checks and enabled them after for any interrupt to fire
This commit is contained in:
parent
e6ff57b804
commit
34e1fe2d6b
@ -61,11 +61,11 @@ int main()
|
||||
|
||||
PORTB |= (boost_highVoltage_nextTick << PORTB5); // Onboard-Led
|
||||
|
||||
sei(); // Activate global interrupts (after checks) [when an interrupt was fired, it will now be executed]
|
||||
|
||||
// Endless loop
|
||||
while (1)
|
||||
{
|
||||
cli(); // Deactivate global interrupts (before checks)
|
||||
|
||||
/*
|
||||
* HighVoltage boosting
|
||||
*/
|
||||
@ -123,6 +123,8 @@ int main()
|
||||
if(signalOutput_led_nextTick == 0) signalOutput_led_nextTick++; // If its 0, it stops, we dont want that
|
||||
}
|
||||
}
|
||||
|
||||
sei(); // Activate global interrupts (after checks) [when an interrupt was fired, it will now be executed]
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user