Skip to content

Commit 522beff

Browse files
Bekken, Kristian_saxrudfacchinm
Bekken, Kristian_saxrud
authored andcommitted
Oscillator frequency error (SIGROW) in a signed value
1 parent f9de6dc commit 522beff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/wiring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ void init()
316316

317317
#if (PERFORM_SIGROW_CORRECTION_F_CPU == 1)
318318
/* Calculate actual F_CPU with error values from signature row */
319-
uint8_t sigrow_val = SIGROW.OSC16ERR5V;
319+
int8_t sigrow_val = SIGROW.OSC16ERR5V;
320320
cpu_freq *= (1024 + sigrow_val);
321321
cpu_freq /= 1024;
322322
#endif /* (CORRECT_F_CPU == 1) */

0 commit comments

Comments
 (0)