Skip to content

Commit

Permalink
We don't support presets using gcode for now to keep things simple. T…
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethjiang committed Sep 23, 2024
1 parent f25ab7f commit 1c367b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions moonraker_obico/moonraker_conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ def find_all_thermal_presets(self):
data = self.api_get('server/database/item', raise_for_status=False, namespace='mainsail', key='presets') or {}
for preset in data.get('value', {}).get('presets', {}).values():
try:
if 'gcode' in preset and preset['gcode'].trim():
continue # We don't support presets using gcode for now to keep things simple

preset_name = preset['name']
extruder_target = float(preset['values']['extruder']['value'])
bed_target = float(preset['values']['heater_bed']['value'])
Expand Down

0 comments on commit 1c367b3

Please sign in to comment.