Skip to content

Commit 8e4dc01

Browse files
committed
modify faulter comparison logic to fault on an non-zero value, not just GT zero
1 parent 7a67c7b commit 8e4dc01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fastcat_devices/faulter.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ bool fastcat::Faulter::Read()
4848
ERROR("Could not extract signal");
4949
return false;
5050
}
51-
state_->faulter_state.fault_active = (signals_[0].value > 0);
51+
state_->faulter_state.fault_active = (fabs(signals_[0].value) > 0);
5252

5353
return true;
5454
}

0 commit comments

Comments
 (0)