diff --git a/Group21_Lab06_Task2/main.c b/Group21_Lab06_Task2/main.c index 89466ea..4c5374b 100644 --- a/Group21_Lab06_Task2/main.c +++ b/Group21_Lab06_Task2/main.c @@ -49,6 +49,7 @@ void delay(int us) // DEFINING DELAY FUNCTION } void SystickHandler(void) { // SysTick interrupt handler + static int ontime = 0; ontime++; if (ontime < duty) { @@ -114,5 +115,3 @@ int main(void) { // Main loop does nothing; everything is handled in interrupts } } - -