EIVE upstream #29

Merged
muellerr merged 693 commits from use-eive-upstream into develop 2023-06-30 15:44:39 +02:00
Showing only changes of commit 55ed7ab93e - Show all commits

View File

@ -23,12 +23,13 @@ class ManualCsLockWrapper : public HasReturnvaluesIF {
} }
~ManualCsLockWrapper() { ~ManualCsLockWrapper() {
if (lockResult == RETURN_OK) {
lock->unlockMutex();
}
if (gpioResult == RETURN_OK) { if (gpioResult == RETURN_OK) {
gpioIF->pullHigh(cookie->getChipSelectPin()); gpioIF->pullHigh(cookie->getChipSelectPin());
} }
cookie->setCsLockManual(false);
if (lockResult == RETURN_OK) {
lock->unlockMutex();
}
} }
ReturnValue_t lockResult; ReturnValue_t lockResult;
ReturnValue_t gpioResult; ReturnValue_t gpioResult;