From d5eee780b798212131fe783cee76270081c0ef87 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Thu, 26 Jan 2012 07:39:45 +0100 Subject: arduino sketch: fixed reading of hex digit 'f' --- arduino_sketch/fuzzy_alarm_clock_ds1307/fuzzy_alarm_clock_ds1307.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arduino_sketch') diff --git a/arduino_sketch/fuzzy_alarm_clock_ds1307/fuzzy_alarm_clock_ds1307.pde b/arduino_sketch/fuzzy_alarm_clock_ds1307/fuzzy_alarm_clock_ds1307.pde index ae5b4c9..8d4c5ef 100644 --- a/arduino_sketch/fuzzy_alarm_clock_ds1307/fuzzy_alarm_clock_ds1307.pde +++ b/arduino_sketch/fuzzy_alarm_clock_ds1307/fuzzy_alarm_clock_ds1307.pde @@ -240,7 +240,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 < 103 ) { return rec - 87; } else { return 0; -- cgit v1.2.3