Settings-Datei fortgesetzt
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user