added Hikrobot support, fixed some troubles

This commit is contained in:
2025-04-08 17:30:48 +03:00
parent 7a0acd14f5
commit 3090f2c85e
14 changed files with 566 additions and 44 deletions

View File

@@ -203,7 +203,7 @@ static void stp_disconnect(){
}
state = STP_DISCONN;
sockfd = -1;
LOGWARN("Canserver disconnected");
LOGWARN("Stepper server disconnected");
}
// check if nmot is U/V/F and return FALSE if not
@@ -1129,7 +1129,8 @@ steppersproc* steppers_connect(){
if(!stp_connect_server()) return NULL;
if(pthread_create(&processingthread, NULL, stp_process_states, NULL)){
LOGERR("pthread_create() for steppers server failed");
ERR("pthread_create()");
WARNX("pthread_create()");
return NULL;
}
return &steppers;
}