klipper/klippy/extras
Kamil Trzcinski 7e88f9220c menu: fix crash when opening SDCard menu while printing
This fixes the bug introduced by f1091a484b.
The problem is that condition was returning string which
could not be converted to boolean. We solve that by showing
`Start Printing` when `is_active`.

```
ERROR:root:Unhandled exception during run
Traceback (most recent call last):
   ...
   File "/opt/klipper/klippy/extras/display/menu.py", line 117, in eval_enable
     return bool(ast.literal_eval(self._enable_tpl.render(context)))
   File "/usr/lib/python2.7/ast.py", line 49, in literal_eval
     node_or_string = parse(node_or_string, mode='eval')
   File "/usr/lib/python2.7/ast.py", line 37, in parse
     return compile(source, filename, mode, PyCF_ONLY_AST)
   File "<unknown>", line 1
     /opt/octoprint/uploads/wait_print.gcode
```

Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
2021-07-26 22:34:43 -04:00
..
display menu: fix crash when opening SDCard menu while printing 2021-07-26 22:34:43 -04:00
__init__.py
ad5206.py
adc_scaled.py
adc_temperature.py
adxl345.py adxl345: Use "clock" suffix instead of "time" in commands 2021-04-30 11:40:37 -04:00
bed_mesh.py bed_mesh: implement BED_MESH_OFFSET 2021-06-08 00:02:35 -04:00
bed_screws.py
bed_tilt.py
bltouch.py bltouch: Ensure the z_offset is not negative 2021-06-22 15:30:25 -04:00
bme280.py bme280: Add support for BMP280 and BME680 sensors (#4040) 2021-03-15 11:50:29 -04:00
board_pins.py
bus.py
buttons.py
canbus_ids.py
controller_fan.py controller_fan: Minor updates 2021-07-20 10:34:14 -04:00
delayed_gcode.py
delta_calibrate.py stepper: Remove set_tag_position() code 2021-05-29 21:54:34 -04:00
display_status.py
dotstar.py dotstar: report color data via get_status() 2021-06-18 10:53:12 -04:00
ds18b20.py
duplicate_pin_override.py duplicate_pin_override: Debugging tool to permit multiple use pins 2021-06-27 18:50:51 -04:00
endstop_phase.py endstop_phase: Unify phase conversion code 2021-06-06 20:41:27 -04:00
extruder_stepper.py stepper: Do not set min_stop_interval in micro-controller 2021-04-30 11:09:08 -04:00
fan.py
fan_generic.py
filament_motion_sensor.py filament_motion_sensor: add get_status (#4281) 2021-05-11 13:17:22 -04:00
filament_switch_sensor.py
firmware_retraction.py gcode: Update gcode descriptions (#4335) 2021-06-02 10:45:27 -04:00
force_move.py
gcode_arcs.py
gcode_button.py
gcode_macro.py gcode_macro: add description property (#4317) 2021-05-26 14:21:21 -04:00
gcode_move.py gcode: Update gcode descriptions (#4335) 2021-06-02 10:45:27 -04:00
hall_filament_width_sensor.py hall_filament_width_sensor: fix range check error (#4113) 2021-03-27 12:53:40 -04:00
heater_bed.py
heater_fan.py
heater_generic.py
heaters.py
homing.py homing: Check for failures during multi-endstop homing 2021-06-09 18:58:35 -04:00
homing_heaters.py homing: Pass the HomingMove class to homing_move_begin/end events 2021-03-29 21:20:57 -04:00
homing_override.py
htu21d.py htu21d: sensor definition fix (#4075) 2021-03-18 23:38:07 -04:00
idle_timeout.py
input_shaper.py
lm75.py
manual_probe.py probe: add ability to save babystepping (#4404) 2021-07-25 20:20:15 -04:00
manual_stepper.py stepper: Do not set min_stop_interval in micro-controller 2021-04-30 11:09:08 -04:00
mcp4018.py
mcp4451.py
mcp4728.py
multi_pin.py
neopixel.py neopixel: report color data via get_status() method 2021-06-18 10:53:12 -04:00
output_pin.py output_pin: Fix bug in setting of self.resend_interval 2021-03-27 14:52:21 -04:00
palette2.py palette2: Fix get_status (#4171) 2021-04-15 13:53:06 -04:00
pause_resume.py print_stats: add `cancelled` when `CANCEL_PRINT` used (#4366) 2021-06-14 15:09:55 -04:00
pca9533.py pca9533: RGB support for the mightyboard (#4150) 2021-04-09 17:47:16 -04:00
pid_calibrate.py
print_stats.py print_stats: add `cancelled` when `CANCEL_PRINT` used (#4366) 2021-06-14 15:09:55 -04:00
probe.py probe: add ability to save babystepping (#4404) 2021-07-25 20:20:15 -04:00
pulse_counter.py pulse_counter: Use "clock" suffix instead of "time" in commands 2021-04-30 11:40:37 -04:00
quad_gantry_level.py z_tilt: expose an 'applied' status to allow macros to skip QGL/Z_TILT_ADJUST (#4313) 2021-06-02 11:11:19 -04:00
query_adc.py
query_endstops.py
replicape.py replicape: Don't require a host alias for the enable_pin default 2021-03-25 10:49:17 -04:00
resonance_tester.py resonance_tester: Arbitrary AXIS in TEST_RESONANCES command 2021-07-08 11:00:23 -04:00
respond.py gcode: Update gcode descriptions (#4335) 2021-06-02 10:45:27 -04:00
safe_z_home.py safe_z_home: Simplify logic and fix edge case 2021-05-26 12:57:31 -04:00
samd_sercom.py samd_sercom: Specify the sercom explicitly in a config option 2021-07-04 09:48:45 -04:00
save_variables.py
screws_tilt_adjust.py screws_tilt_adjust: Add DIRECTION parameter to SCREWS_TILT_CALCULATE (#4357) 2021-06-22 15:18:05 -04:00
sdcard_loop.py loop_sdcard: Add loopable SD card file sections 2021-05-26 11:57:57 -04:00
servo.py
shaper_calibrate.py resonance_tester: Fixed multi-point resonance testing 2021-04-07 19:05:23 -04:00
skew_correction.py skew_correction: Register during "connect" phase instead of "ready" phase 2021-03-31 22:13:36 -04:00
spi_temperature.py
static_digital_output.py
statistics.py statistics: Export the OS and process load in a get_status() method 2021-04-09 20:27:38 -04:00
stepper_enable.py controller_fan: Minor updates 2021-07-20 10:34:14 -04:00
sx1509.py
temperature_fan.py
temperature_host.py
temperature_mcu.py rp2040: Add initial adc support 2021-07-04 10:11:02 -04:00
temperature_sensor.py
thermistor.py
tmc.py homing: Pass the HomingMove class to homing_move_begin/end events 2021-03-29 21:20:57 -04:00
tmc2130.py tmc2130: Report CS_ACTUAL in DUMP_TMC even if zero 2021-03-16 11:31:24 -04:00
tmc2208.py
tmc2209.py tmc2209: Set SENDDELAY=2 to avoid uart rx/tx errors 2021-07-23 13:37:20 -04:00
tmc2660.py tmc2660: Fix typo in seup field 2021-03-18 23:36:25 -04:00
tmc5160.py
tmc_uart.py tmc_uart: Increase default UART rate to 40000 on 32bit MCUs 2021-07-23 13:37:20 -04:00
tsl1401cl_filament_width_sensor.py
tuning_tower.py
verify_heater.py
virtual_sdcard.py virtual_sdcard: add `file_path` and `file_size` to `status` 2021-06-22 15:15:03 -04:00
z_tilt.py z_tilt: expose an 'applied' status to allow macros to skip QGL/Z_TILT_ADJUST (#4313) 2021-06-02 11:11:19 -04:00