Skip to content

Commit

Permalink
This error shouldn't have stopped the print. This would prevent it
Browse files Browse the repository at this point in the history
  • Loading branch information
CoDanny committed Jul 25, 2019
1 parent 55dedff commit 57fe8b9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/astroprint/printer/marlin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,14 +376,16 @@ def mcStateChange(self, state):
def mcLayerChange(self, layer):
super(PrinterMarlin, self).mcLayerChange(layer)

self._adjustTimePerLayers()

try:
self._adjustTimePerLayers()

if not layer == 1:
self.timePercentPreviousLayers += self._comm.timePerLayers[layer-2]['time']
else:
self.timePercentPreviousLayers = 0
except: pass

except:
self._logger.error('Error in mcLayerChange', exc_info=True)

def _adjustTimePerLayers(self):

Expand Down

0 comments on commit 57fe8b9

Please sign in to comment.