diff options
author | McNova <[email protected]> | 2022-07-13 21:00:07 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2022-07-14 04:00:07 +0300 |
commit | 32da05b3ecdebb0f2ff34ed7cf47763a95c644d3 (patch) | |
tree | 20a3007c4a15305d8f358a002aab6c2005a8ecaf /hid | |
parent | 1c77ae1ef9355a4e0fb439a1d94bb26b2f77db04 (diff) |
Check that a packet start with PROTO::MAGIC (#80)
Co-authored-by: Christian Vallières <[email protected]>
Diffstat (limited to 'hid')
-rw-r--r-- | hid/src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hid/src/main.cpp b/hid/src/main.cpp index 00716667..eb8ee809 100644 --- a/hid/src/main.cpp +++ b/hid/src/main.cpp @@ -334,7 +334,7 @@ int main() { if (index == 7) { _sendResponse(_handleRequest(buffer)); index = 0; - } else { + } else if (buffer[0] == PROTO::MAGIC) { last = micros(); ++index; } |