diff --git a/mission/devices/RadiationSensorHandler.cpp b/mission/devices/RadiationSensorHandler.cpp index 75649967..57714d03 100644 --- a/mission/devices/RadiationSensorHandler.cpp +++ b/mission/devices/RadiationSensorHandler.cpp @@ -69,7 +69,14 @@ ReturnValue_t RadiationSensorHandler::buildCommandFromCommand(DeviceCommandId_t return RETURN_OK; } case (RAD_SENSOR::START_CONVERSION): { - gpioIF->pullHigh(gpioIds::ENABLE_RADFET); + ReturnValue_t result = gpioIF->pullHigh(gpioIds::ENABLE_RADFET); + if (result != HasReturnvaluesIF::RETURN_OK) { +#if OBSW_VERBOSE_LEVEL >= 1 + sif::warning << "RadiationSensorHandler::buildCommandFromCommand; Pulling RADFET Enale pin " + "high failed" + << std::endl; +#endif + } /* First the fifo will be reset here */ cmdBuffer[0] = RAD_SENSOR::RESET_DEFINITION; cmdBuffer[1] = RAD_SENSOR::CONVERSION_DEFINITION; @@ -106,7 +113,14 @@ ReturnValue_t RadiationSensorHandler::scanForReply(const uint8_t *start, size_t case RAD_SENSOR::WRITE_SETUP: return IGNORE_REPLY_DATA; case RAD_SENSOR::READ_CONVERSIONS: { - gpioIF->pullLow(gpioIds::ENABLE_RADFET); + ReturnValue_t result = gpioIF->pullLow(gpioIds::ENABLE_RADFET); + if (result != HasReturnvaluesIF::RETURN_OK) { +#if OBSW_VERBOSE_LEVEL >= 1 + sif::warning << "RadiationSensorHandler::buildCommandFromCommand; Pulling RADFET Enale pin " + "low failed" + << std::endl; +#endif + } break; } default: