commit 22b5964470d94535e27164e84f762a149c1ad680 parent b68e8d82b83d0850a794e40a4802dab555c48ae6 Author: Dominik Hofer <dominik.hofer@bfh.ch> Date: Sat, 28 Dec 2019 20:39:43 +0100 Dont test checksum for cmds smaller than or equal 2 bytes Diffstat:
| M | src/main.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c @@ -1936,7 +1936,7 @@ handle_command (const char *hex, } /* Calculate the checksum and check it */ - if (2 < hex_len) + if (4 < hex_len) { chkSum = cmd;