remove useless check as previous one is enough

This commit is contained in:
smayzy 2026-04-27 14:59:41 +02:00
parent 45bad91ba7
commit 52c2deb4ca

View File

@ -122,18 +122,16 @@ void read_can(Tel *t, int soc) {
if (nbytes != sizeof(struct can_frame)) return; if (nbytes != sizeof(struct can_frame)) return;
if (nbytes > 0) {
switch (frame.can_id) { switch (frame.can_id) {
case 0x382: case 0x382:
if (frame.can_dlc >= 2) { if (frame.can_dlc >= 2) {
t->rpm.data = frame.data[0] | (frame.data[1] << 8); t->rpm.data = frame.data[0] | (frame.data[1] << 8);
} }
break; break;
default: default:
break; break;
}
} }
} }