1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Fix MSP output buffer overflow (#13879)

* Fix MSP output buffer overflow

* Add comment
This commit is contained in:
Mark Haslinghuis 2024-09-10 19:53:42 +02:00 committed by GitHub
parent aa92203215
commit c88f7c9016
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,7 +68,7 @@ typedef enum {
} mspPendingSystemRequest_e;
#define MSP_PORT_INBUF_SIZE 192
#define MSP_PORT_OUTBUF_SIZE_MIN 320
#define MSP_PORT_OUTBUF_SIZE_MIN 512 // As of 2021/08/10 MSP_BOXNAMES generates a 307 byte response for page 1. There has been overflow issues with 320 byte buffer.
#ifdef USE_FLASHFS
#define MSP_PORT_DATAFLASH_BUFFER_SIZE 4096