Skip to content

Commit

Permalink
Fix a Robus reception byte count mistake making big messages potentia…
Browse files Browse the repository at this point in the history
…lly crash.
  • Loading branch information
nicolas-rabault committed Sep 18, 2023
1 parent 23428f6 commit 25f9ee3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions network/robus_network/src/reception.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ _CRITICAL void Recep_GetData(luos_phy_t *phy_robus, volatile uint8_t *data)
// Send an Ack
Transmit_SendAck();
}
// Remove the CRC additional byte
phy_robus->received_data--;
// Valid the message
Phy_ValidMsg(phy_robus);
}
Expand Down

0 comments on commit 25f9ee3

Please sign in to comment.