diff --git a/avr/main.asm b/avr/main.asm index 359d356..a284e9d 100644 --- a/avr/main.asm +++ b/avr/main.asm @@ -33,7 +33,8 @@ main: ; rcall watchdogOff ; turn off watchdog timer (sometimes it stays on after reboot) rcall systemSetSpeed - + + rcall initModules rcall Utils_SetupUid @@ -65,14 +66,15 @@ main: main_loop: rcall runModules - sei ; make sure interrupts really are enabled ; only modify SE, SM1 and SM0 + cli in r16, MCUCR ldi r17, (1<