stevemarple / SoftWire

Software I2C implementation for Arduino and other Wiring-type environments
GNU Lesser General Public License v2.1
136 stars 31 forks source link

Bug in DS1307 hour in case of 24h mode #19

Closed tutoduino closed 3 years ago

tutoduino commented 3 years ago

There is a small bug in the example for DS1307 while getting the hour. Here is the fix: tenHour = (registers[2] & 0x30) >> 4;