Changement à la source de données MQTT
Début codage Watchdog CAN
This commit is contained in:
@@ -32,7 +32,7 @@ int CPCANInterface::GetDeviceHandle(quint8 DeviceID, TPCANHandle &Handle)
|
||||
{
|
||||
TPCANHandle TempHandle;
|
||||
QString Parameters = QString("devicetype=pcan_usb, deviceid=%1").arg(DeviceID);
|
||||
if(CAN_LookUpChannel(Parameters.toLocal8Bit().data(),&TempHandle) != PCAN_ERROR_OK)
|
||||
if(CAN_LookUpChannel(Parameters.toLocal8Bit().data(),&TempHandle) != PCAN_ERROR_OK || TempHandle == PCAN_NONEBUS)
|
||||
{
|
||||
Handle = 0;
|
||||
return RET_GENERAL_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user