Skip to content

Commit

Permalink
Merge pull request #5 from TheRo0T/master
Browse files Browse the repository at this point in the history
Fix to cover win32 canhacker bug: in some situation C command have extra up to 6 bytes
  • Loading branch information
autowp committed Nov 11, 2016
2 parents 6f737c3 + c71a56b commit efd7398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CanHacker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ CanHacker::ERROR CanHacker::receiveTimestampCommand(const char *buffer, const in
CanHacker::ERROR CanHacker::receiveCloseCommand(const char *buffer, const int length) {
writeDebugStream(F("receiveCloseCommand\n"));

if (length != 1) {
if (length < 1) {
return ERROR_INVALID_COMMAND;
}

Expand Down

0 comments on commit efd7398

Please sign in to comment.