MemLCD-Temperature-Humidity-Demo: This is an example program for the Happy Gecko starter kit, which includes an on-board Sharp memory LCD, and a Silicon Labs si7021 relative humidity and temperature sensor.

Dependencies:   MemoryLCD SILABS_RHT mbed

Issue: Error during time calculation

Hi all,

it seems like you have a mistake in MemLCD-Temperature-Humidity-Demo. As I understand you calculate hours, minutes and seconds here:

MemLCD-Temperature-Humidity-Demo/main.cpp

display.printf("%02d:%02d:%02d", (seconds / 1200) % 24, (seconds / 60) % 60, seconds % 60);

So why you divide number of seconds into 1200 to obtain number of hours? The divider must be 3600 I suppose

MemLCD-Temperature-Humidity-Demo/main.cpp

display.printf("%02d:%02d:%02d", (seconds / 3600) % 24, (seconds / 60) % 60, seconds % 60);