fix polling hopefully

This commit is contained in:
Kilian Bracher 2025-03-27 22:23:17 +01:00
parent 4dda2084a3
commit c7be10b37f

View File

@ -271,5 +271,5 @@ HAL_StatusTypeDef __pollCMD(uint16_t command, uint8_t waitTime) {
return status;
}
return ((buffer[4 + (N_BMS * 2)] & 0x0F) == 0x0) ? HAL_BUSY : HAL_OK; //SDO goes high when data is ready
return ((buffer[sizeof buffer] & 0x0F) == 0x0) ? HAL_BUSY : HAL_OK; //SDO goes high when data is ready
}