From b96bf9ff925c9a858cac91c9530491cde2a857e1 Mon Sep 17 00:00:00 2001 From: Seikilos Date: Sat, 29 Dec 2018 15:50:44 +0100 Subject: [PATCH] Added hint that now full 8MHz speed of ATmega is used. --- Chapter08_Hardware-Interrupts/capSense/capSense.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Chapter08_Hardware-Interrupts/capSense/capSense.c b/Chapter08_Hardware-Interrupts/capSense/capSense.c index c90f657c..c8658fdb 100644 --- a/Chapter08_Hardware-Interrupts/capSense/capSense.c +++ b/Chapter08_Hardware-Interrupts/capSense/capSense.c @@ -35,7 +35,9 @@ ISR(PCINT1_vect) { int main(void) { // -------- Inits --------- // - clock_prescale_set(clock_div_1); /* full speed */ + + /* full speed, hint: F_CPU must be 8000000UL */ + clock_prescale_set(clock_div_1); initUSART(); printString("==[ Cap Sensor ]==\r\n\r\n");