rad sensor working

This commit is contained in:
2021-05-03 12:49:14 +02:00
parent a126812a23
commit ff4a156a45
5 changed files with 100 additions and 177 deletions

View File

@ -77,9 +77,11 @@ ReturnValue_t SusHandler::buildCommandFromCommand(
return RETURN_OK;
}
case(SUS::START_CONVERSION): {
cmdBuffer[0] = SUS::CONVERSION_DEFINITION;
/* First the fifo will be reset before a new conversion is initiated */
cmdBuffer[0] = SUS::RESET_DEFINITION;
cmdBuffer[1] = SUS::CONVERSION_DEFINITION;
rawPacket = cmdBuffer;
rawPacketLen = 1;
rawPacketLen = 2;
return RETURN_OK;
}
case(SUS::READ_CONVERSIONS): {