Fix compile errors

This commit is contained in:
Stefano Calabretti
2022-02-23 18:59:57 +01:00
parent 588f8f1396
commit 38be086307
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -61,8 +61,8 @@ HalStatus MMR_CAN_SendScs(
HalStatus MMR_CAN_HandleNextScs(CanHandle *hcan) {
static int counter = 0;
MmrCanScsEntry *entry = &__scsEntries[counter];
++counter %= MMR_CAN_SCS_ENTRIES_COUNT;
MmrCanScsEntry *entry = &__scsEntries[counter++];
counter %= MMR_CAN_SCS_ENTRIES_COUNT;
if (MMR_CAN_HeaderToBits(entry->header) == 0) {
return HAL_OK;