Skip to content

Commit be85f8b

Browse files
committed
Fixed updateSafteyFlag
1 parent 721c230 commit be85f8b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/LoadContainer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ class LoadContainer {
5757
return (currentRPM > TARGET_RPM);
5858
} // todo
5959

60-
inline void updateSafetyFlag(bool safetyFlag) {
61-
if (digitalRead(UM_PROS3::ESTOP_PIN) == LOW) {
60+
inline void updateSafetyFlag() {
61+
if (digitalRead(UM_PROS3::ESTOP_PIN) == HIGH) {
6262
this->safetyFlag = ESTOP_TYPE_FAST::BUTTON;
6363
} else if (abs(INA260::current_mA) <
6464
PSENSOR::LOAD_SHED_I_THRESHOLD_mA) {

0 commit comments

Comments
 (0)