* companion: temp fix: logRxRaw() is blowing the MAX_FRAME_SIZE

This commit is contained in:
Scott Powell
2025-03-28 14:14:59 +11:00
parent c0cb57be5c
commit ba93867037

View File

@@ -484,7 +484,7 @@ protected:
} }
void logRxRaw(float snr, float rssi, const uint8_t raw[], int len) override { void logRxRaw(float snr, float rssi, const uint8_t raw[], int len) override {
if (_serial->isConnected()) { if (_serial->isConnected() && len+3 <= MAX_FRAME_SIZE) {
int i = 0; int i = 0;
out_frame[i++] = PUSH_CODE_LOG_RX_DATA; out_frame[i++] = PUSH_CODE_LOG_RX_DATA;
out_frame[i++] = (int8_t)(snr * 4); out_frame[i++] = (int8_t)(snr * 4);