fix typo; log hour, not second
This commit is contained in:
parent
8f0aeb0217
commit
42f0eac6d1
@ -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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user