Reduced rad sensor polling #747

Merged
muellerr merged 5 commits from rad-sensor-polling-update into main 2023-07-20 16:26:54 +02:00
4 changed files with 40 additions and 19 deletions
Showing only changes of commit a52d116857 - Show all commits

View File

@@ -162,7 +162,6 @@ ReturnValue_t RadiationSensorHandler::scanForReply(const uint8_t *start, size_t
<< std::endl; << std::endl;
#endif #endif
} }
measurementCd.resetTimer();
break; break;
} }
case radSens::ENABLE_DEBUG_OUTPUT: case radSens::ENABLE_DEBUG_OUTPUT:
@@ -183,6 +182,7 @@ ReturnValue_t RadiationSensorHandler::interpretDeviceReply(DeviceCommandId_t id,
switch (id) { switch (id) {
case radSens::READ_CONVERSIONS: { case radSens::READ_CONVERSIONS: {
uint8_t offset = 0; uint8_t offset = 0;
measurementCd.resetTimer();
{ {
PoolReadGuard readSet(&dataset); PoolReadGuard readSet(&dataset);
uint16_t tempRaw = ((packet[offset] & 0x0f) << 8) | packet[offset + 1]; uint16_t tempRaw = ((packet[offset] & 0x0f) << 8) | packet[offset + 1];