diff --git a/src/octoprint/plugins/lasercutterprofiles/profile.py b/src/octoprint/plugins/lasercutterprofiles/profile.py index e493de03..c662a557 100644 --- a/src/octoprint/plugins/lasercutterprofiles/profile.py +++ b/src/octoprint/plugins/lasercutterprofiles/profile.py @@ -32,8 +32,8 @@ class LaserCutterProfileManager(object): width = 217, depth = 298, height = 0, - origin_offset_x = 1, - origin_offset_y = 1, + origin_offset_x = 1.1, + origin_offset_y = 1.1, ), zAxis = False, axes=dict( diff --git a/src/octoprint/plugins/svgtogcode/static/js/convert.js b/src/octoprint/plugins/svgtogcode/static/js/convert.js index 9ba684cb..fe37227f 100644 --- a/src/octoprint/plugins/svgtogcode/static/js/convert.js +++ b/src/octoprint/plugins/svgtogcode/static/js/convert.js @@ -110,7 +110,7 @@ $(function(){ self.cancel_conversion = function(){ if(self.slicing_in_progress()){ - console.log('cancel slicing', self.slicing_in_progress()); + //console.log('cancel slicing', self.slicing_in_progress()); // TODO cancel slicing properly } }; diff --git a/src/octoprint/plugins/svgtogcode/static/js/working_area.js b/src/octoprint/plugins/svgtogcode/static/js/working_area.js index 3c0d93da..24f4d498 100644 --- a/src/octoprint/plugins/svgtogcode/static/js/working_area.js +++ b/src/octoprint/plugins/svgtogcode/static/js/working_area.js @@ -335,7 +335,7 @@ $(function(){ var tooHigh = svgBB.h > waBB.h; var scale = 1; if(tooWide || tooHigh){ - scale = Math.min(waBB.w / svgBB.w, waBB.h / svgBB.h) - 0.01; // scale minimal smaller to avoid rounding errors + scale = Math.min(waBB.w / svgBB.w, waBB.h / svgBB.h) - 0.0001; // scale minimal smaller to avoid rounding errors } var dx = 0; diff --git a/src/octoprint/util/comm_acc2.py b/src/octoprint/util/comm_acc2.py index 6a9f7bfd..2ad4a3be 100644 --- a/src/octoprint/util/comm_acc2.py +++ b/src/octoprint/util/comm_acc2.py @@ -377,6 +377,10 @@ class MachineCom(object): self._send_event.clear(completely=True) self._changeState(self.STATE_LOCKED) + # close and open serial port to reset arduino + self._serial.close() + self._openSerial() + def _handle_feedback_message(self, line): if line[1:].startswith('Res'): # [Reset to continue] pass