Skip to content

Commit 9bf2233

Browse files
huang-w-yscotthsl
authored andcommitted
Fix: When there are both G90 and G91, the cross-light offset will be configured incorrectly
1 parent 2a73f20 commit 9bf2233

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Marlin/src/gcode/gcode.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,13 @@ void GcodeSuite::get_destination_from_command() {
117117
destination[i] += laser_crosslight_offset[i];
118118
laser->ClearXyOffsetApplicationByIndex(i);
119119
}
120-
if (!laser->GetXyOffsetApplication()) {
121-
laser->SetWeakLightOriginMode(true);
122-
}
120+
// if (!laser->GetXyOffsetApplication()) {
121+
// laser->SetWeakLightOriginMode(true);
122+
// }
123123
}
124124
else{
125125
destination[i] += laser_crosslight_offset[i];
126+
laser->ClearXyOffsetApplicationByIndex(i);
126127
}
127128
}
128129
}

Marlin/src/inc/Version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* here we define this default string as the date where the latest release
5252
* version was tagged.
5353
*/
54-
#define STRING_DISTRIBUTION_DATE "2024-0528"
54+
#define STRING_DISTRIBUTION_DATE "2024-0603"
5555

5656
/**
5757
* Required minimum Configuration.h and Configuration_adv.h file versions.

0 commit comments

Comments
 (0)