Skip to content

Commit

Permalink
fix machine.ini write and flip endstop min/max
Browse files Browse the repository at this point in the history
  • Loading branch information
markwal committed Jul 3, 2015
1 parent 2bba085 commit b759587
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion octoprint_GPX/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def fetch_machine_ini(self, machineid):
profile_path = os.path.join(data_folder, machineid + ".ini")
from .iniparser import IniParser
machine_ini = IniParser(profile_path, self._logger)
if os.path.isdir(profile_folder) and os.path.exists(profile_path) and os.path.isfile(profile_path):
if os.path.isdir(data_folder) and os.path.exists(profile_path) and os.path.isfile(profile_path):
try:
machine_ini.read()
self._logger.info("Read machine definition from %s" % profile_path)
Expand Down
12 changes: 6 additions & 6 deletions octoprint_GPX/templates/GPX_settings.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -156,18 +156,18 @@
<td class="label-column text-right">{{ _('Home:') }}</td>
<td><select class="select-mini" data-bind="value: machine.x.endstop">
<option value="undefined">{{ _('') }}</option>
<option value="1">{{ _('Min') }}</option>
<option value="0">{{ _('Max') }}</option>
<option value="0">{{ _('Min') }}</option>
<option value="1">{{ _('Max') }}</option>
</select></td>
<td><select class="select-mini" data-bind="value: machine.y.endstop">
<option value="undefined">{{ _('') }}</option>
<option value="1">{{ _('Min') }}</option>
<option value="0">{{ _('Max') }}</option>
<option value="0">{{ _('Min') }}</option>
<option value="1">{{ _('Max') }}</option>
</select></td>
<td><select class="select-mini" data-bind="value: machine.z.endstop">
<option value="undefined">{{ _('') }}</option>
<option value="1">{{ _('Min') }}</option>
<option value="0">{{ _('Max') }}</option>
<option value="0">{{ _('Min') }}</option>
<option value="1">{{ _('Max') }}</option>
</select></td>
</tr>
</table>
Expand Down

0 comments on commit b759587

Please sign in to comment.