Settings-Datei fortgesetzt

This commit is contained in:
Bernhard Schräer
2026-01-20 13:24:56 +01:00
parent b5f7b5a45d
commit 874ebf51ba
5 changed files with 78 additions and 6 deletions

View File

@@ -6,8 +6,6 @@
#include <io/io.h>
#include <mqtt/mqtt_client.h>
int iCanSimu = 0;
struct MOTOR_CONTROL_DATA motctrl[MAX_MOTOR_COUNT];
struct CAN_INTERFACE_DATA intf_data[MAX_MOTOR_COUNT];
@@ -55,7 +53,7 @@ int Can_OpenInterface(int iMotorIndex, const char * ifacename)
Can_SetMotorGear(iMotorIndex, MOTOR_GEAR_NEUTRAL);
Can_SetMotorPower(iMotorIndex, 0);
if (iCanSimu)
if (settings.iCanSimu)
{
mylog(LOG_INFO, "CAN: Using simulation mode (motor %d).", iMotorIndex);
intf_data[iMotorIndex].socket = -1;