Changement à la source de données MQTT

Début codage Watchdog CAN
This commit is contained in:
2023-06-06 17:59:30 -04:00
parent 31c6287b5d
commit 48e9ca3f9c
36 changed files with 2061 additions and 160 deletions
+1 -1
View File
@@ -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;