1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

update serTcpOpen declaration to fix compile errors (#14113)

update serTcpopen declaration to fix compile errors
This commit is contained in:
Leo Garcia 2024-12-28 12:41:32 -08:00 committed by GitHub
parent 31bd403446
commit 2a50634f67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,6 +23,7 @@
#include <netinet/in.h>
#include <pthread.h>
#include "dyad.h"
#include "io/serial.h"
#define RX_BUFFER_SIZE 1400
#define TX_BUFFER_SIZE 1400
@ -41,7 +42,7 @@ typedef struct {
uint8_t id;
} tcpPort_t;
serialPort_t *serTcpOpen(int id, serialReceiveCallbackPtr rxCallback, void *rxCallbackData, uint32_t baudRate, portMode_e mode, portOptions_e options);
serialPort_t *serTcpOpen(serialPortIdentifier_e id, serialReceiveCallbackPtr rxCallback, void *rxCallbackData, uint32_t baudRate, portMode_e mode, portOptions_e options);
// tcpPort API
void tcpDataIn(tcpPort_t *instance, uint8_t* ch, int size);