fix polling hopefully
This commit is contained in:
parent
4dda2084a3
commit
c7be10b37f
@ -271,5 +271,5 @@ HAL_StatusTypeDef __pollCMD(uint16_t command, uint8_t waitTime) {
|
|||||||
return status;
|
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
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user