Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RainerZ committed Aug 31, 2024
1 parent b5770c2 commit c3c853e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion xcplib/src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
//#include <math.h>
#include <math.h>
#include <assert.h>

#ifndef _WIN // Linux
Expand Down
2 changes: 2 additions & 0 deletions xcplib/src/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

#ifdef PLATFORM_ENABLE_KEYBOARD

#include <fcntl.h>

int _getch() {
struct termios oldt, newt;
int ch;
Expand Down
9 changes: 0 additions & 9 deletions xcplib/src/xcpEthServer.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,6 @@ BOOL XcpEthServerInit(const uint8_t* addr, uint16_t port, BOOL useTCP, uint16_t
// Init network sockets
if (!socketStartup()) return FALSE;

// just to be sure
assert(sizeof(uint8_t) == 1);
assert(sizeof(uint16_t) == 2);
assert(sizeof(uint32_t) == 4);
assert(sizeof(int32_t) == 4);
assert(sizeof(uint64_t) == 8);
assert(sizeof(int64_t) == 8);
assert(sizeof(BOOL) == 4);

gXcpServer.TransmitThreadRunning = 0;
gXcpServer.ReceiveThreadRunning = 0;

Expand Down
4 changes: 2 additions & 2 deletions xcplib/src/xcpLite.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@ typedef struct {
uint16_t SessionStatus;

tXcpCto Crm; /* response message buffer */
uint8_t CmdPendingLen; /* pending command message length */
uint8_t CrmLen; /* RES,ERR message length */

#ifdef XCP_ENABLE_DYN_ADDRESSING
tXcpCto CmdPending; /* pending command message buffer */
uint8_t CrmLen; /* RES,ERR message length */
uint8_t CmdPendingLen; /* pending command message length */

#ifdef XCP_ENABLE_MULTITHREAD_CAL_EVENTS
MUTEX CmdPendingMutex;
Expand Down

0 comments on commit c3c853e

Please sign in to comment.