Skip to content

Commit

Permalink
firmware: app: tasks: Updating media_erase parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelboing committed Aug 14, 2024
1 parent 878c482 commit 55d78a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/app/tasks/time_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ static int time_control_save_sys_time(sys_time_t tm)
buf[4] = (uint32_t)tm & 0xFFU;
buf[5] = time_control_crc8(buf, 5U);

if (media_erase(TIME_CONTROL_MEDIA, MEDIA_ERASE_SECTOR, FLASH_SEG_A_ADR) != 0)
if (media_erase(TIME_CONTROL_MEDIA, FLASH_SEG_A_ADR) != 0)
{
if (media_write(TIME_CONTROL_MEDIA, CONFIG_MEM_ADR_SYS_TIME, buf, 6U) != 0)
{
Expand Down

0 comments on commit 55d78a0

Please sign in to comment.