Add ChecksumError handling to FatError conversion

This commit is contained in:
2026-05-05 00:23:04 +02:00
parent 776db785c4
commit f4e050d413

View File

@@ -316,9 +316,12 @@ impl From<sntpc::Error> for FatError {
impl From<BmsProtocolError> for FatError {
fn from(value: BmsProtocolError) -> Self {
match value {
BmsProtocolError::I2cCommunicationError => FatError::String {
BmsProtocolError::I2cCommunicationError =>FatError::String {
error: "I2C communication error".to_string(),
},
BmsProtocolError::ChecksumError => FatError::String {
error: "BMS checksum error".to_string(),
},
}
}
}