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 board_pins: Use an explicit parameter to specify mcu name(s) 2020-11-20 12:00:36 -05:00
bus.py tmc2130: Verify SPI register writes 2021-03-10 17:12:25 -05:00
buttons.py
canbus_ids.py mcu: Add support for connecting to devices on a CAN bus 2021-03-13 11:29:41 -05:00
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 display_status: fix M117 checksum trimming (#3377) 2020-09-28 10:11:05 -04:00
dotstar.py dotstar: report color data via get_status() 2021-06-18 10:53:12 -04:00
ds18b20.py ds18b20: new module for 1-wire temperature sensor (#3462) 2021-02-02 14:34:56 -05:00
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: Minor updates to tachometer handling 2021-03-01 14:57:40 -05:00
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 heaters: Make sure set_temp() command wakes up the idle_timeout 2021-03-05 18:59:01 -05:00
heater_fan.py heater_fan: Fix typo causing excessive cpu usage 2020-12-01 12:31:22 -05:00
heater_generic.py
heaters.py heaters: Make sure set_temp() command wakes up the idle_timeout 2021-03-05 18:59:01 -05:00
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 homing: Make homing.py an "extras" module 2021-01-08 14:01:34 -05:00
htu21d.py htu21d: sensor definition fix (#4075) 2021-03-18 23:38:07 -04:00
idle_timeout.py idle_timeout: change standard timeout g-code (#4018) 2021-03-07 13:48:54 -05:00
input_shaper.py input_shaper: Simplify input shaper type reporting 2020-12-01 11:36:37 -05:00
lm75.py lm75: Implement support for min_temp/max_temp checks 2021-02-01 10:37:19 -05:00
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 mcu: Add support for changing cycle_time in set_pwm() 2020-09-26 20:55:56 -04:00
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 heaters: Make sure set_temp() command wakes up the idle_timeout 2021-03-05 18:59:01 -05:00
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 gcode_macro: Use deepcopy() on get_status() results 2021-01-20 16:25:25 -05:00
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 gcode_macro: Use deepcopy() on get_status() results 2021-01-20 16:25:25 -05:00
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 spi_temperature: Improve handling of min_temp/max_temp overflows 2021-02-01 10:37:19 -05:00
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 mcu: Add support for changing cycle_time in set_pwm() 2020-09-26 20:55:56 -04:00
temperature_fan.py temperature_fan: Add MAX_SPEED and MIN_SPEED to SET_TEMPERATURE_FAN_TARGET command (#3873) 2021-02-02 14:30:04 -05:00
temperature_host.py temperature_host: Rename "path" config to "sensor_path" 2021-02-20 09:23:13 -05:00
temperature_mcu.py rp2040: Add initial adc support 2021-07-04 10:11:02 -04:00
temperature_sensor.py temperature_sensor: Report temperature in stats 2020-12-06 21:55:26 -05:00
thermistor.py thermistor: Add support for the board thermistor on the Einsy Rambo 2020-10-08 15:25:09 -04:00
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 tmc: Move SET_TMC_CURRENT command to TMCCommandHelper() 2021-02-27 10:39:46 -05:00
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: Fix order of init during sensorless homing 2021-02-28 18:30:25 -05:00
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 hall_filament_width_sensor: Fix race condition (#3790) 2021-01-22 13:41:34 -05:00
tuning_tower.py
verify_heater.py docs: Move config reference information to new Config_Reference.md 2020-11-18 20:10:21 -05:00
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