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
Showing only changes of commit 910addc27a - Show all commits

View File

@ -15,6 +15,8 @@ RadiationSensorHandler::RadiationSensorHandler(object_id_t objectId, object_id_t
if (comCookie == nullptr) { if (comCookie == nullptr) {
sif::error << "RadiationSensorHandler: Invalid com cookie" << std::endl; sif::error << "RadiationSensorHandler: Invalid com cookie" << std::endl;
} }
// Time out immediately so we get an immediate measurement at device startup.
measurementCd.timeOut();
} }
RadiationSensorHandler::~RadiationSensorHandler() {} RadiationSensorHandler::~RadiationSensorHandler() {}
@ -160,6 +162,7 @@ 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: