important fix

This commit is contained in:
Robin Müller 2022-05-14 16:58:28 +02:00
parent bcd19045cc
commit 55ed7ab93e
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

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;