aboutsummaryrefslogtreecommitdiff
path: root/arduino_sketch/fuzzy_alarm_clock_ds1307
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>2012-01-26 07:39:45 +0100
committerElena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>2012-01-26 07:39:45 +0100
commitd5eee780b798212131fe783cee76270081c0ef87 (patch)
tree7326c99c0e92fd4d0ea95765b261dc3033a48ba8 /arduino_sketch/fuzzy_alarm_clock_ds1307
parentad91932ec1eafc7f88604dba85d5327e82205c81 (diff)
arduino sketch: fixed reading of hex digit 'f'
Diffstat (limited to 'arduino_sketch/fuzzy_alarm_clock_ds1307')
-rw-r--r--arduino_sketch/fuzzy_alarm_clock_ds1307/fuzzy_alarm_clock_ds1307.pde2
1 files changed, 1 insertions, 1 deletions
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;