Fixed overlook device settings in config processing
This commit is contained in:
@@ -133,14 +133,13 @@ int serialdev_free(SimDevice* this)
|
||||
|
||||
int serialdev_init(SerialDevice* serialdevice, DeviceSettings* ds)
|
||||
{
|
||||
slogi("initializing serial device...");
|
||||
slogi("initializing serial device on port %s...", ds->serialdevsettings.portdev);
|
||||
int error = 0;
|
||||
|
||||
|
||||
serialdevice->motorsposition = ds->serialdevsettings.motorsposition;
|
||||
serialdevice->baudrate = ds->serialdevsettings.baud;
|
||||
|
||||
error = arduino_init(serialdevice, ds->serialdevsettings.portdev);
|
||||
switch (serialdevice->type)
|
||||
{
|
||||
case SERIALDEV_WHEEL:
|
||||
|
||||
@@ -551,7 +551,7 @@ int devsetup(const char* device_type, const char* device_subtype, const char* co
|
||||
}
|
||||
}
|
||||
|
||||
if (ds->dev_subtype == SIMDEVTYPE_SIMWIND || ds->dev_subtype == SIMDEVTYPE_SHIFTLIGHTS || ds->dev_subtype == SIMDEVTYPE_SERIALHAPTIC)
|
||||
if (ds->dev_type == SIMDEV_SERIAL)
|
||||
{
|
||||
if (device_settings != NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user