important fix
This commit is contained in:
parent
bcd19045cc
commit
55ed7ab93e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user