This commit is contained in:
iceman1001 committed 2023-10-18 20:34:35 +02:00
1 parent 185da09e62
commit 1f3cf80898
16 files changed
+139 -107

No files matched your search

+2 -2
View File
@@ -38,7 +38,7 @@ typedef struct {
DCB dcb; // Device control settings
COMMTIMEOUTS ct; // Serial port time-out configuration
SOCKET hSocket; // Socket handle
RingBuffer* udpBuffer; // Buffer for UDP
RingBuffer *udpBuffer; // Buffer for UDP
} serial_port_windows_t;
// this is for TCP connection
@@ -473,7 +473,7 @@ int uart_receive(const serial_port sp, uint8_t *pbtRx, uint32_t pszMaxRxLen, uin
*pszRxLen = 0;
do {
int res;
if(spw->udpBuffer != NULL) {
if (spw->udpBuffer != NULL) {
// for UDP connection, try to use the data from the buffer
byteCount = RingBuf_getAvailableSize(spw->udpBuffer);