Skip to content

Commit

Permalink
Fix slic3r start_gcode
Browse files Browse the repository at this point in the history
  • Loading branch information
simonxeko committed Mar 5, 2017
1 parent cca51be commit a42709c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fluxclient/printer/stl_slicer.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def begin_slicing(self, names, ws, output_type):
command += ['--print-center', '%f,%f' % (cx, cy)]
command += ['--load', tmp_slic3r_setting_file]

logger.debug('command: ' + ' '.join(command))
logger.info('command: ' + ' '.join(command))
self.end_slicing('slic3r begin next slicing')

status_list = []
Expand Down Expand Up @@ -553,7 +553,7 @@ def my_ini_writer(cls, file_path, content, delete=None):
content['raft_layers'] = '0';

if content.get('start_gcode','') != "":
content['start_gcode'] = 'M109 S[first_layer_temperature]\n' + content.get('start_gcode','')
content['start_gcode'] = "M109 S[first_layer_temperature]\\n" + content.get('start_gcode','')

with open(file_path, 'w') as f:
for i in content:
Expand Down

0 comments on commit a42709c

Please sign in to comment.