add working with pseudo-FX3U with my firmware

This commit is contained in:
2026-09-29 17:06:31 +03:00
parent 985a179b87
commit 1db54ed07c
11 changed files with 297 additions and 15 deletions

View File

@@ -24,6 +24,7 @@
#include "cmdlnopts.h"
#include "motors.h"
#include "esq770.h"
#include "io.h"
#if 0
ðÒÏÔÏËÏÌ (s - ÓÅÔÔÅÒ, g - getteer):
@@ -73,6 +74,7 @@ static int motindex = 0;
// close modbus connection
static void motors_close_m(){
io_set_ctx(NULL); // do it before removing context
if(modbus_ctx){
modbus_close(modbus_ctx);
modbus_free(modbus_ctx);
@@ -104,6 +106,7 @@ static int motors_open_m(const char *path, int speed){
motors_close_m();
return FALSE;
}
io_set_ctx(modbus_ctx);
return TRUE;
}
static int motors_open_e(const char _U_ *path, int _U_ speed){ // stub for emulation mode