aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>2011-09-03 10:26:34 +0200
committerElena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>2011-09-03 10:26:34 +0200
commitc7615d380edab699e8f1f66962c3b0fff0c79116 (patch)
treeedac82550dfa39a5a32e444dcfc750673238b71e
parent363ed3f2033245b964b1441f8bb9dd0e62e7eb47 (diff)
Arduino sketch: fixed serial reading of hex digit a
-rw-r--r--ds1307/arduino_sketch/fuzzy_alarm_clock_ds1307.pde2
1 files changed, 1 insertions, 1 deletions
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;