Skip to content

Commit

Permalink
fix: missing location infomation for printer emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
iron768 committed Dec 18, 2024
1 parent 8caabe3 commit 06d3673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion printeremu/src/gcode_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func (cmd *M114Command) Execute(printer *Printer) []string {
position := printer.Extruder.Position

// TODO: temp values
return []string{fmt.Sprintf("X:%.2f Y:%.2f Z:%.2f E:%.2f Count X:%.2f", position.X, position.Y, position.Z, 1.0, 0.0), "ok"}
return []string{fmt.Sprintf("X:%.2f Y:%.2f Z:%.2f E:%.2f Count X:%.2f Count Y:%.2f Count Z:%.2f", position.X, position.Y, position.Z, 1.0, 0.0, 0.0, 0.0), "ok"}
}

type M115Command struct{}
Expand Down

0 comments on commit 06d3673

Please sign in to comment.