Этот коммит содержится в:
Kevin Le
2026-02-18 22:32:01 +07:00
родитель 063f5056f2
Коммит 39fb2902ec
+3 -2
Просмотреть файл
@@ -22,10 +22,11 @@ public:
}
void release() {
if (_claims == 0) return; // avoid negative _claims
_claims--;
if (_claims == 0) {
digitalWrite(_pin, !_active);
} else {
_claims--;
}
}
};