:30
the 12 was missing. I think I found the error, in
Code: Select all
// Handle when hours are past 12 by subtracting 12 hours (1200 value).
if (hours > 11) {
displayValue -= 1200;
}
// Handle hour 0 (midnight) being shown as 12.
else if (hours == 0) {
displayValue += 1200;
}
Code: Select all
hours > 12
I just don't get, with all the people who've used this code, how it was missed? Did everyone test the hardware with it at different hours then write their own code from scratch?
Or am I just missing something?