]> git.earman.xyz Git - sensor-watch.git/commitdiff
fix typo; log hour, not second
authorJoey Castillo <jose.castillo@gmail.com>
Wed, 18 Aug 2021 18:36:38 +0000 (14:36 -0400)
committerJoey Castillo <jose.castillo@gmail.com>
Wed, 18 Aug 2021 18:36:38 +0000 (14:36 -0400)
Sensor Watch BME280 Project/app.c

index bf4969fddb1067fb283c1a2be6e068e989c9c066..59090ea3dcfc295a8d93bff53b9fc8298d08e2cd 100644 (file)
@@ -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++) {