File tree Expand file tree Collapse file tree
poulpe_ethercat_controller/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ impl BoardStatus {
137137 Ok ( BoardStatus :: OverCurrentError )
138138 } else if flags. motor_error_flags . iter ( ) . any ( |x| {
139139 x. contains ( & MotorErrorFlag :: LowBusVoltage )
140- || x. contains ( & MotorErrorFlag :: DriverFault )
140+ || x. contains ( & MotorErrorFlag :: DriverFault )
141141 || x. contains ( & MotorErrorFlag :: DriverCommunicationFail )
142142 } ) {
143143 Ok ( BoardStatus :: BusVoltageError )
@@ -153,8 +153,11 @@ impl BoardStatus {
153153 Ok ( BoardStatus :: ZeroingError )
154154 } else if flags
155155 . homing_error_flags
156- . contains ( & HomingErrorFlag :: AxisSensorReadFail ) ||
157- flags. motor_error_flags . iter ( ) . any ( |x| x. contains ( & MotorErrorFlag :: AxisSensorCommunicationFail ) )
156+ . contains ( & HomingErrorFlag :: AxisSensorReadFail )
157+ || flags
158+ . motor_error_flags
159+ . iter ( )
160+ . any ( |x| x. contains ( & MotorErrorFlag :: AxisSensorCommunicationFail ) )
158161 {
159162 Ok ( BoardStatus :: SensorError )
160163 } else {
You can’t perform that action at this time.
0 commit comments