Rework SUS polling #408

Merged
muellerr merged 8 commits from rework_sus_polling into develop 2023-03-01 18:12:56 +01:00
Showing only changes of commit 67128b398c - Show all commits

View File

@ -88,7 +88,7 @@ ReturnValue_t SusHandler::interpretDeviceReply(DeviceCommandId_t id, const uint8
PoolReadGuard pg(&dataset); PoolReadGuard pg(&dataset);
dataset.setValidity(true, true); dataset.setValidity(true, true);
dataset.tempC = max1227::getTemperature(reply->tempRaw); dataset.tempC = max1227::getTemperature(reply->tempRaw);
std::memcpy(dataset.channels.value, reply->channelsRaw, 6); std::memcpy(dataset.channels.value, reply->channelsRaw, sizeof(reply->channelsRaw));
} }
return returnvalue::OK; return returnvalue::OK;
} }