Print CP signal state as char
parent
440898389e
commit
9a8335e620
|
|
@ -110,7 +110,7 @@ void IntegrationPluginSchrack::setupThing(ThingSetupInfo *info)
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(cionConnection, &CionModbusRtuConnection::cpSignalStateChanged, thing, [=](quint16 cpSignalState){
|
connect(cionConnection, &CionModbusRtuConnection::cpSignalStateChanged, thing, [=](quint16 cpSignalState){
|
||||||
qCDebug(dcSchrack()) << "CP Signal state changed:" << cpSignalState;
|
qCDebug(dcSchrack()) << "CP Signal state changed:" << (char)cpSignalState;
|
||||||
thing->setStateValue(cionPluggedInStateTypeId, cpSignalState >= 66);
|
thing->setStateValue(cionPluggedInStateTypeId, cpSignalState >= 66);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue