Skip to content

Commit

Permalink
Fix: fix loss one line gcode when recover from power loss
Browse files Browse the repository at this point in the history
  • Loading branch information
xhycode authored and scotthsl committed Dec 6, 2021
1 parent 0eabc37 commit dca6d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snapmaker/src/service/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@ ErrCode SystemService::RecoverFromPowerLoss(SSTP_Event_t &event) {
else
current_line_ = 0;
// Batch sending requires the controller to actively request the next line
gocde_pack_start_line(current_line_ + 1);
gocde_pack_start_line(current_line_);
SNAP_DEBUG_SET_GCODE_LINE(current_line_);
pl_recovery.SaveCmdLine(pl_recovery.cur_data_.FilePosition);
LOG_I("trigger RESTORE: ok\n");
Expand Down

0 comments on commit dca6d7b

Please sign in to comment.