Skip to content

Commit

Permalink
firmware: app: structs: Add option to update system time
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonborba committed Sep 23, 2024
1 parent 6fc97d9 commit 1b67d06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion firmware/app/structs/eps2_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
*/

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

#include "eps2_data.h"

Expand Down Expand Up @@ -65,7 +66,8 @@ int eps_buffer_write(uint8_t id, uint32_t *value)
switch(id)
{
case EPS2_PARAM_ID_TIMESTAMP:
eps_data_buff.timestamp = *value;
eps_data_buff.timestamp = *value;
system_set_time(*value);
break;
case EPS2_PARAM_ID_MCU_TEMP:
eps_data_buff.eps_mcu_temp_kelvin = *value;
Expand Down

0 comments on commit 1b67d06

Please sign in to comment.