Skip to content

Commit

Permalink
update the random to linux for AUTO_BED_LEVELING_3POINT
Browse files Browse the repository at this point in the history
update the random to linux for AUTO_BED_LEVELING_3POINT
  • Loading branch information
markniu committed Mar 22, 2022
1 parent 46b5c4b commit f236a57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Marlin2.x/pandapi/src/gcode/bedlevel/abl/G29.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,8 @@ G29_TYPE GcodeSuite::G29() {

// Retain the last probe position
abl.probePos = points[i];
abl.measured_z = faux ? 0.001 * random(-100, 101) : probe.probe_at_point(abl.probePos, raise_after, abl.verbose_level);
//PANDAPI abl.measured_z = faux ? 0.001 * random(-100, 101) : probe.probe_at_point(abl.probePos, raise_after, abl.verbose_level);
abl.measured_z = faux ? 0.001 * linux_random_101() : probe.probe_at_point(abl.probePos, raise_after, abl.verbose_level);
if (isnan(abl.measured_z)) {
set_bed_leveling_enabled(abl.reenable);
break;
Expand Down

0 comments on commit f236a57

Please sign in to comment.