misra21.15 (#2030)

* cast

* remove suppression

* make it more explicit
This commit is contained in:
Maxime Desroches
2024-09-19 10:35:11 -07:00
committed by GitHub
parent ae8ef1f71a
commit ed831773ea
4 changed files with 6 additions and 7 deletions

View File

@@ -117,7 +117,7 @@ int comms_control_handler(ControlPacket_t *req, uint8_t *resp) {
can_health[req->param1].brs_enabled = bus_config[req->param1].brs_enabled;
can_health[req->param1].canfd_non_iso = bus_config[req->param1].canfd_non_iso;
resp_len = sizeof(can_health[req->param1]);
(void)memcpy(resp, &can_health[req->param1], resp_len);
(void)memcpy(resp, (uint8_t*)(&can_health[req->param1]), resp_len);
}
break;
// **** 0xc3: fetch MCU UID