TaskIF refactoring and SPI refactoring #86

Merged
meierj merged 5 commits from mueller/task-if-refactor-spi-refactor into develop 2022-05-17 20:25:54 +02:00
1 changed files with 4 additions and 3 deletions
Showing only changes of commit 55ed7ab93e - Show all commits

View File

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