Skip to content

Commit c71a56b

Browse files
committed
Fix to cover win32 canhacker bug: in some situation C command have extra up to 6 bytes
1 parent 6f737c3 commit c71a56b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CanHacker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ CanHacker::ERROR CanHacker::receiveTimestampCommand(const char *buffer, const in
615615
CanHacker::ERROR CanHacker::receiveCloseCommand(const char *buffer, const int length) {
616616
writeDebugStream(F("receiveCloseCommand\n"));
617617

618-
if (length != 1) {
618+
if (length < 1) {
619619
return ERROR_INVALID_COMMAND;
620620
}
621621

0 commit comments

Comments
 (0)