Skip to content

Commit b2aaf9c

Browse files
committed
qtplasmac: fix state when cut recovery offsets are reset
1 parent 9715a17 commit b2aaf9c

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

src/hal/components/plasmac.comp

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A plasma cutting table control component for use with the LinuxCNC V2.8 or later
77

88
.I VERSION:
99
.br
10-
1.236
10+
1.237
1111

1212
.I SUMMARY:
1313
.br
@@ -2245,11 +2245,15 @@ FUNCTION(_) {
22452245
cut_recovering = FALSE;
22462246
feed_hold = FALSE;
22472247
thc_delay_timer = thc_delay;
2248-
if(mode < 2){
2249-
voidlock_on_count = 0;
2250-
state = CUT_MODE_01;
2248+
if(cut_recovery){
2249+
if(mode < 2){
2250+
voidlock_on_count = 0;
2251+
state = CUT_MODE_01;
2252+
}else{
2253+
state = CUT_MODE_2;
2254+
}
22512255
}else{
2252-
state = CUT_MODE_2;
2256+
state = IDLE;
22532257
}
22542258
}else{
22552259
state = IDLE;

0 commit comments

Comments
 (0)