Skip to content

Commit

Permalink
ethercat cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
r2k committed Nov 19, 2022
1 parent 314c901 commit 1116acc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webserver/core/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void logger_callback(unsigned char *msg){ log(msg);}
int main(int argc,char **argv)
{
unsigned char log_msg[1000];
sprintf(log_msg, "OpenPLC Runtime starting...\n");
sprintf((char *)log_msg, "OpenPLC Runtime starting...\n");
log(log_msg);

//======================================================
Expand Down Expand Up @@ -316,6 +316,7 @@ int main(int argc,char **argv)
// SHUTTING DOWN OPENPLC RUNTIME
//======================================================
pthread_join(interactive_thread, NULL);
ethercat_terminate_src();
printf("Disabling outputs\n");
disableOutputs();
updateCustomOut();
Expand Down

0 comments on commit 1116acc

Please sign in to comment.