From f5f2d0df162ee55ec9057d45d677ada5db34d03f Mon Sep 17 00:00:00 2001 From: Jeff Leung Date: Mon, 17 Jun 2019 04:54:17 +0800 Subject: [PATCH] increase SA_MAX_RCVLEN to allocate enough buffer for receiving setting response from smartaudio v2.1 device --- src/main/io/vtx_smartaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/io/vtx_smartaudio.c b/src/main/io/vtx_smartaudio.c index b53ab3c96d..fa0bc5cb02 100644 --- a/src/main/io/vtx_smartaudio.c +++ b/src/main/io/vtx_smartaudio.c @@ -138,7 +138,7 @@ static char *saSupportedPowerLabelPointerArray[VTX_SMARTAUDIO_POWER_COUNT + 1]; bool saDeferred = true; // saCms variable? // Receive frame reassembly buffer -#define SA_MAX_RCVLEN 15 +#define SA_MAX_RCVLEN 20 static uint8_t sa_rbuf[SA_MAX_RCVLEN+4]; // XXX delete 4 byte guard //