From c7615d380edab699e8f1f66962c3b0fff0c79116 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sat, 3 Sep 2011 10:26:34 +0200 Subject: Arduino sketch: fixed serial reading of hex digit a --- ds1307/arduino_sketch/fuzzy_alarm_clock_ds1307.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ds1307') diff --git a/ds1307/arduino_sketch/fuzzy_alarm_clock_ds1307.pde b/ds1307/arduino_sketch/fuzzy_alarm_clock_ds1307.pde index f9d8ef4..8c24791 100644 --- a/ds1307/arduino_sketch/fuzzy_alarm_clock_ds1307.pde +++ b/ds1307/arduino_sketch/fuzzy_alarm_clock_ds1307.pde @@ -179,7 +179,7 @@ int s_read_hex() { return rec - 48; } else if ( rec >= 65 && rec < 71 ) { return rec - 55; - } else if ( rec > 97 && rec < 102 ) { + } else if ( rec >= 97 && rec < 102 ) { return rec - 87; } else { return 0; -- cgit v1.2.3