mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-10 07:11:59 +00:00
fix debug spam for api calls (possibly corrupting protocol)
This commit is contained in:
parent
68cb62ab23
commit
7f2bbcd95e
@ -45,7 +45,7 @@ int32_t StreamAPI::readStream()
|
|||||||
} else if (ptr >= HEADER_LEN - 1) { // we have at least read our 4 byte framing
|
} else if (ptr >= HEADER_LEN - 1) { // we have at least read our 4 byte framing
|
||||||
uint32_t len = (rxBuf[2] << 8) + rxBuf[3]; // big endian 16 bit length follows framing
|
uint32_t len = (rxBuf[2] << 8) + rxBuf[3]; // big endian 16 bit length follows framing
|
||||||
|
|
||||||
console->printf("len %d\n", len);
|
// console->printf("len %d\n", len);
|
||||||
|
|
||||||
if (ptr == HEADER_LEN - 1) {
|
if (ptr == HEADER_LEN - 1) {
|
||||||
// we _just_ finished our 4 byte header, validate length now (note: a length of zero is a valid
|
// we _just_ finished our 4 byte header, validate length now (note: a length of zero is a valid
|
||||||
|
Loading…
Reference in New Issue
Block a user