Skip to content

Commit

Permalink
logger string from unsigned char* to char*
Browse files Browse the repository at this point in the history
  • Loading branch information
Rainer Kordmaa committed Mar 5, 2024
1 parent b328ae7 commit 69b0996
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ethercat_src.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ typedef u_int8_t *(*int8var_call_back) (int);
typedef u_int16_t *(*int16var_call_back) (int);
typedef u_int32_t *(*int32var_call_back) (int);
typedef u_int64_t *(*int64var_call_back) (int);
typedef void (*type_logger_callback) (unsigned char*);
typedef void (*type_logger_callback) (char*);

// Setup before realtime
int ethercat_configure(char *paramsfile, type_logger_callback);
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ uint32_t *dint_input_call_back(int a){ return &dwordvar; }
uint32_t *dint_output_call_back(int a){ return &dwordvar; }
uint64_t *lint_input_call_back(int a){ return &lwordvar; }
uint64_t *lint_output_call_back(int a){ return &lwordvar; }
void logger_callbackf(unsigned char *msg){ printf("PLC log: %s", msg); }
void logger_callbackf(char *msg){ printf("PLC log: %s", msg); }

//-----------------------------------------------------------------------------
// Helper function - Makes the running thread sleep for the ammount of time
Expand Down

0 comments on commit 69b0996

Please sign in to comment.