Skip to content

Commit

Permalink
firmware: app: tasks: Using system time variable, closes #165
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelboing committed Oct 4, 2024
1 parent 34ca297 commit b8166ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firmware/app/tasks/read_sensors.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
* \{
*/

#include <system/system.h>
#include <system/sys_log/sys_log.h>

#include <devices/temp_sensor/temp_sensor.h>
Expand Down Expand Up @@ -99,7 +100,7 @@ void vTaskReadSensors(void)
}

/* Data timestamp */
ttc_data_buf.timestamp = (uint32_t)xTaskGetTickCount();
ttc_data_buf.timestamp = (uint32_t)system_get_time();

vTaskDelayUntil(&last_cycle, pdMS_TO_TICKS(TASK_READ_SENSORS_PERIOD_MS));
}
Expand Down

0 comments on commit b8166ce

Please sign in to comment.