mirror of
https://github.com/eddyem/BTA_utils.git
synced 2026-08-13 19:49:24 +03:00
add modbus support, need to test
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user