Skip to content

Commit a3f1e0e

Browse files
committed
Add missing m_udpClientWrapper
1 parent 4e62f5e commit a3f1e0e

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

inc/xcp.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,13 +1430,13 @@ extern "C" {
14301430
/*
14311431
** Serial Port Function Prototypes.
14321432
*/
1433-
void Serial_Init(void);
1434-
void Serial_DeInit(void);
1435-
uint32_t Serial_Available(void);
1436-
bool Serial_Read(uint8_t *in_byte);
1437-
void Serial_WriteByte(uint8_t out_byte);
1438-
void Serial_WriteBuffer(uint8_t const *out_bytes, uint32_t size);
1439-
void Serial_MainFunction(void);
1433+
void Serial_Init(void);
1434+
void Serial_DeInit(void);
1435+
bool Serial_Available(void);
1436+
bool Serial_Read(uint8_t *in_byte);
1437+
void Serial_WriteByte(uint8_t out_byte);
1438+
void Serial_WriteBuffer(uint8_t const *out_bytes, uint32_t size);
1439+
void Serial_MainFunction(void);
14401440

14411441
#endif
14421442

src/tl/eth/arduino_networking.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,13 @@ class EthernetUdpClientWrapper : public ClientWrapper {
175175

176176
private:
177177

178-
EthernetUDP* m_udp;
179-
IPAddress m_remoteIp;
180-
uint16_t m_remotePort;
181-
uint8_t m_buf[XCP_COMM_BUFLEN];
182-
size_t m_size;
183-
size_t m_offset;
178+
EthernetUDP* m_udp;
179+
IPAddress m_remoteIp;
180+
uint16_t m_remotePort;
181+
uint8_t m_buf[XCP_COMM_BUFLEN];
182+
size_t m_size;
183+
size_t m_offset;
184+
EthernetUdpClientWrapper m_udpClientWrapper;
184185
};
185186

186187
class EthernetAdapter : public ArduinoNetworkIf {

src/xcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ XCP_STATIC void Xcp_Upload(uint8_t len) {
943943

944944
void Xcp_DispatchCommand(Xcp_PduType const * const pdu) {
945945
const uint8_t cmd = pdu->data[0];
946-
DBG_TRACE2("<- CMD: 0x%02X\n\r", cmd);
946+
DBG_TRACE1("<- ");
947947

948948
if (Xcp_State.connected == (bool)XCP_TRUE) {
949949
/*DBG_PRINT2("CMD: [%02X]\n\r", cmd); */

0 commit comments

Comments
 (0)