Check that a packet start with PROTO::MAGIC (#80)

Co-authored-by: Christian Vallières <christian.vallieres@evimbec.ca>
This commit is contained in:
McNova 2022-07-13 21:00:07 -04:00 committed by GitHub
parent 1c77ae1ef9
commit 32da05b3ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -334,7 +334,7 @@ int main() {
if (index == 7) {
_sendResponse(_handleRequest(buffer));
index = 0;
} else {
} else if (buffer[0] == PROTO::MAGIC) {
last = micros();
++index;
}