change WDT to 500ms

This commit is contained in:
2021-06-29 19:56:43 +03:00
parent e3fd4f727d
commit 4621c3db8b
2 changed files with 4 additions and 1 deletions

View File

@@ -24,6 +24,9 @@ board_hardware.uart = no_bootloader
board_hardware.bod = 2.7v
; specify fuses because platformio burns wrong ones when uploading
; actually this doesn't help?
; for whatever reason avrdude gives an error if you don't upload
; just after flashing fuses
board_fuse.lfuse = 0xf7
board_fuse.hfuse = 0xd7
board_fuse.efuse = 0xfd

View File

@@ -133,7 +133,7 @@ void setup() {
OCR2A = 250;
TCCR2A |= (1 << WGM20) | (1 << CS21);
TIMSK2 |= (1 << OCIE2A);
wdt_enable(WDTO_8S);
wdt_enable(WDTO_500MS);
}
volatile unsigned int tick = 0;