leveling: Fix. Points not activated moving backwards

This commit is contained in:
mfm 2018-01-24 18:36:02 +01:00
parent fc0ec94849
commit 9b6e8faf70
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ $(function() {
self.startLeveling = function() {
self.activePoint(0);
OctoPrint.control.sendGcode("G28")
self.moveToPoint(self.activePoint);
}
self.stopLeveling = function() {
@ -28,6 +29,7 @@ $(function() {
self.previousPoint = function() {
self.activePoint(self.activePoint()-1);
self.moveToPoint(self.activePoint);
}
self.pointCount = function() {