this is insane
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good

This commit is contained in:
2023-03-27 21:23:09 +02:00
parent 7023fe5c42
commit fb324516bb
7 changed files with 51 additions and 15 deletions

View File

@ -33,14 +33,14 @@ ReturnValue_t PapbVcInterface::write(const uint8_t* data, size_t size) {
return DirectTmSinkIF::IS_BUSY;
}
for (size_t idx = 0; idx < size; idx++) {
if (pollPapbBusySignal(20) == returnvalue::OK) {
if (pollPapbBusySignal(5) == returnvalue::OK) {
*(vcBaseReg + DATA_REG_OFFSET) = static_cast<uint32_t>(data[idx]);
} else {
abortPacketTransfer();
return returnvalue::FAILED;
}
}
if (pollPapbBusySignal(20) == returnvalue::OK) {
if (pollPapbBusySignal(5) == returnvalue::OK) {
completePacketTransfer();
} else {
abortPacketTransfer();