add modbus support, need to test

This commit is contained in:
2026-08-12 10:31:13 +03:00
parent a996bae853
commit 11f3553344
6 changed files with 174 additions and 28 deletions

View File

@@ -139,7 +139,7 @@ int open_socket(){
int fd = OpenConn(atoi(G.port));
#ifdef SERVER
if(G.emulmode) set_emulation_mode();
if(!modbus_open(G.serialpath, G.serialspeed)){
if(!motors_open(G.serialpath, G.serialspeed)){
LOGERR("Can't open %s @%d", G.serialpath, G.serialspeed);
WARNX("Can't open %s @%d", G.serialpath, G.serialspeed);
return 1;