function more robust now

This commit is contained in:
Robin Müller 2020-12-02 23:22:28 +01:00
parent f4ed0ce502
commit 586e8b0347

View File

@ -1433,4 +1433,8 @@ dur_millis_t DeviceHandlerBase::getPeriodicOperationFrequency() const {
} }
DeviceCommandId_t DeviceHandlerBase::getPendingCommand() const { DeviceCommandId_t DeviceHandlerBase::getPendingCommand() const {
if(cookieInfo.pendingCommand != deviceCommandMap.end()) {
return cookieInfo.pendingCommand->first;
}
return DeviceHandlerIF::NO_COMMAND;
} }