Skip to content
Snippets Groups Projects
Commit 389fa2df authored by nrs1g15's avatar nrs1g15
Browse files

[UNTESTED] Status array 0 is not used as index starts at 1

parent 2c85ed0b
No related branches found
No related tags found
No related merge requests found
......@@ -451,7 +451,7 @@ static void sys__manager__status_update_msg_handler()
sys__datastore.status[SYS__DATASTORE__STATUS_TAG_S60_ECU] = ((millis() - sys__datastore.lastEcuMessageSeenTimeMs) <
SYS__MANAGER__STATUS_ECU_TIMEOUT_MS) ? 0x01 : 0x00;
for (uint8_t i = 0; i <= SYS__DATASTORE__STATUS_TAG_AMOUNT; i++)
for (uint8_t i = 1; i <= SYS__DATASTORE__STATUS_TAG_AMOUNT; i++)
{
srv__comms__wireless_write_cmd_status(i, sys__datastore.status[i]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment