Skip to content

Commit a4da9e2

Browse files
committed
Removed wrong usage of wdt.h constants.
1 parent 1915312 commit a4da9e2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/LoRaReceiverCadDemo328p/LoRaReceiverCadDemo328p.ino

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ void setup() {
3535
WDTCSR |= 1<<WDCE | 1<<WDE;
3636

3737
// Table 10-3. Watchdog Timer Prescale Select
38-
//WDTCSR = WDTO_8S; // 1<<WDP3 | 1<<WDP0; // 8 seconds
39-
//WDTCSR = WDTO_4S; // 1<<WDP3; // 4 seconds
40-
//WDTCSR = WDTO_2S; // 1<<WDP2 | 1<<WDP1 | 1<<WDP0; // 2 seconds
41-
//WDTCSR = WDTO_1S; // 1<<WDP2 | 1<<WDP1; // 1 seconds
42-
//WDTCSR = WDTO_30MS;
43-
WDTCSR = WDTO_15MS;
38+
//WDTCSR = 1<<WDP3 | 1<<WDP0; // 8 seconds
39+
//WDTCSR = 1<<WDP3; // 4 seconds
40+
//WDTCSR = 1<<WDP2 | 1<<WDP1 | 1<<WDP0; // 2 seconds
41+
//WDTCSR = 1<<WDP2 | 1<<WDP1; // 1 seconds
42+
//WDTCSR = 1<<WDP0; // 32 ms
43+
WDTCSR = 0; // 16 ms
4444

4545
WDTCSR |= 1<<WDIE;
4646

0 commit comments

Comments
 (0)