stevemarple / SoftWire

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

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

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;

stevemarple commented 3 years ago

I've submitted your fix, added you to the contributors and bumped the patch level. A new Arduino library version should be building now.

Thanks for your contribution.