set SerialDelimiter=254 to post HEX string

This commit is contained in:
Cheney 2022-01-24 12:01:14 +08:00 committed by GitHub
parent b7b525f3d9
commit 5e79ace165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ void SerialBridgeInput(void) {
while (SerialBridgeSerial->available()) {
yield();
uint8_t serial_in_byte = SerialBridgeSerial->read();
serial_bridge_raw = Settings->serial_delimiter == 255;
serial_bridge_raw = Settings->serial_delimiter == 254;
if ((serial_in_byte > 127) && !serial_bridge_raw) { // Discard binary data above 127 if no raw reception allowed
serial_bridge_in_byte_counter = 0;
SerialBridgeSerial->flush();