diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-08-18 14:36:38 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-08-18 14:36:38 -0400 |
commit | 42f0eac6d12bb354ce34f1cee42ad43f8a023282 (patch) | |
tree | fe990b52c52ba44f610731c747edc4d5137ce9bb /Sensor Watch BME280 Project/app.c | |
parent | 8f0aeb0217c6fe5f4778aef95cf719cfb5ebd399 (diff) | |
download | Sensor-Watch-42f0eac6d12bb354ce34f1cee42ad43f8a023282.tar.gz Sensor-Watch-42f0eac6d12bb354ce34f1cee42ad43f8a023282.tar.bz2 Sensor-Watch-42f0eac6d12bb354ce34f1cee42ad43f8a023282.zip |
fix typo; log hour, not second
Diffstat (limited to 'Sensor Watch BME280 Project/app.c')
-rw-r--r-- | Sensor Watch BME280 Project/app.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Sensor Watch BME280 Project/app.c b/Sensor Watch BME280 Project/app.c index bf4969fd..59090ea3 100644 --- a/Sensor Watch BME280 Project/app.c +++ b/Sensor Watch BME280 Project/app.c @@ -196,7 +196,7 @@ float read_humidity(int32_t t_fine) { void log_data() { struct calendar_date_time date_time; watch_get_date_time(&date_time); - uint8_t hour = date_time.time.sec; + uint8_t hour = date_time.time.hour; int8_t temperature = read_temperature(NULL); for(int i = 0; i < MAX_DATA_POINTS - 1; i++) { |