Refactor MCP2515

This commit is contained in:
Daniel Öster 2024-08-09 22:29:27 +03:00
parent 921b47249d
commit b2a16897c4
3 changed files with 11 additions and 30 deletions

View file

@ -435,7 +435,7 @@ void update_values_can_inverter() { //This function maps all the values fetched
}
}
void receive_can_inverter(CAN_frame_t rx_frame) {
void receive_can_inverter(CAN_frame rx_frame) {
switch (rx_frame.ID) {
case 0x4200: //Message originating from inverter. Depending on which data is required, act accordingly
if (rx_frame.data.u8[0] == 0x02) {