Skip to content

Commit

Permalink
[MI-1476]: alarm 14/17 now use reset:limit to unlock
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiabeluli committed May 15, 2024
1 parent 950a929 commit c450567
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/app/widgets/Visualizer/MachineStatusArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,18 @@ class ControlArea extends Component {

unlock = () => {
const { alarmCode } = this.props;
if (alarmCode === 1 || alarmCode === 2) {
if (
alarmCode === 1 ||
alarmCode === 2 ||
alarmCode === 10 ||
alarmCode === 14 ||
alarmCode === 17
) {
controller.command('reset:limit');
return;
} else if (alarmCode === 'Homing' || alarmCode === 11) {
controller.command('homing');
return;
} else if (alarmCode === 10) {
controller.command('reset:limit');
return;
}
controller.command('unlock');
}
Expand Down

0 comments on commit c450567

Please sign in to comment.