Revert "Hotfix"

This reverts commit c5e2d1dd31.
This commit is contained in:
2026-03-06 16:40:47 +01:00
parent c76996ceb7
commit f5d777d945

View File

@@ -188,7 +188,7 @@ impl Protocol300Message {
return Err(MessageDecodingError::LengthMismatch());
}
let message_identifier = match MessageIdentifier::try_from(bytes[2] & 0x0F) {
let message_identifier = match MessageIdentifier::try_from(bytes[2]) {
Ok(id) => id,
Err(e) => {
error!("Failed to decode message: invalid message identifier byte 0x{:02X}", bytes[2]);
@@ -196,7 +196,7 @@ impl Protocol300Message {
}
};
let function_code = match FunctionCode::try_from(bytes[3] & 0x0F) {
let function_code = match FunctionCode::try_from(bytes[3]) {
Ok(fc) => fc,
Err(e) => {
error!("Failed to decode message: invalid function code byte 0x{:02X}", bytes[3]);