* companion_radio_usb: encoding in ArduinoSerialInterface changed to 16-bit frame lengths

* MAX_FRAME_SIZE now 172 (to fit max 160 byte text msg)
This commit is contained in:
Scott Powell
2025-01-29 10:12:22 +11:00
parent e53f0d0725
commit 4f0acbd8da
3 changed files with 18 additions and 11 deletions

View File

@@ -6,8 +6,8 @@
class ArduinoSerialInterface : public BaseSerialInterface {
bool _isEnabled;
uint8_t _state;
uint8_t _frame_len;
uint8_t rx_len;
uint16_t _frame_len;
uint16_t rx_len;
HardwareSerial* _serial;
uint8_t rx_buf[MAX_FRAME_SIZE];