Merge pull request #14548 from tcwj2008/development

set SerialDelimiter=254 to post HEX string over the serial bridge
This commit is contained in:
Theo Arends 2022-01-24 17:41:25 +01:00 committed by GitHub
commit 7b16162044
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()) { while (SerialBridgeSerial->available()) {
yield(); yield();
uint8_t serial_in_byte = SerialBridgeSerial->read(); uint8_t serial_in_byte = SerialBridgeSerial->read();
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 if ((serial_in_byte > 127) && !serial_bridge_raw) { // Discard binary data above 127 if no raw reception allowed
serial_bridge_in_byte_counter = 0; serial_bridge_in_byte_counter = 0;
SerialBridgeSerial->flush(); SerialBridgeSerial->flush();