aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
Commit message (Collapse)AuthorAgeFilesLines
* stepper: Improve error messages on missing rotation_distanceKevin O'Connor2021-02-231-5/+8
| | | | | | | | If neither rotation_distance nor step_distance is present, then generate an error saying rotation_distance is needed (instead of an error about step_distance). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Revert "bme280: Rename sensor_type from BME280 to bme280"Kevin O'Connor2021-02-201-1/+1
| | | | | | | | | This reverts commit ac61f8b72603e9d08832250026e48093dd66aec4. Many temperature sensors are capitalized, so don't make this chaneg to the bme280. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* menu: Default menu should check extruders have heaters (#3969)Janar Sööt2021-02-201-2/+2
| | | | | | For the hotend targets check also available heaters. It'll solve crash when using shared heaters. Signed-off-by: Janar Sööt <janar.soot@gmail.com>
* menu: redesigned name scroller & menu rendering (#3837)Janar Sööt2021-02-202-93/+95
| | | Signed-off-by: Janar Sööt <janar.soot@gmail.com>
* bme280: Rename sensor_type from BME280 to bme280Kevin O'Connor2021-02-201-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_host: Rename "path" config to "sensor_path"Kevin O'Connor2021-02-201-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_host: Improve backwards compatibility checkKevin O'Connor2021-02-191-2/+5
| | | | | | Don't register two names for the same instance of the sensor. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_host: Rename rpi_temperature and add support for custom pathsEvgenii2021-02-192-13/+16
| | | | | Signed-off-by: Evgenii Shavrin <shavrin0591@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Add last_z_result to get the latest z result in an Macro (#3835)Christian S2021-02-181-1/+4
| | | Signed-off-by: Christian Schnellrieder <schnello.android@gmail.com>
* idle_timeout: Add help to SET_IDLE_TIMEOUT (#3945)Arjan Mels2021-02-181-1/+3
| | | Signed-off-by: Arjan Mels <github@mels.email>
* stepper: Don't cache ffi_lib object in the stepperKevin O'Connor2021-02-181-20/+25
| | | | | | | It's easier to just call chelper.get_ffi() if the ffi_lib object is needed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Extend number of available mcu messages from 96 to 128Kevin O'Connor2021-02-187-31/+35
| | | | | | | | | | | Some internal code treats the message ids as encoded "variable length quantities", while other internal code assumes the message id is always one byte long. Continue using this scheme, but convert the VLQ users to use the name "msgtag" while the 1-byte users use "msgid". Increase the number of available msgids from 96 to 127 - the higher values get encoded as negative "msgtags". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* msgproto: Avoid peeking into the msgproto class membersKevin O'Connor2021-02-183-42/+61
| | | | | | | Update callers to only use exported methods of the msgproto objects. This makes it easier to make internal changes to the code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialqueue: Batch multiple message blocks in a single write()Kevin O'Connor2021-02-121-29/+38
| | | | | | | | Some communication protocols are more efficient if fewer write() calls are invoked. If multiple message blocks can be sent at the same time then batch them into a single write() call. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialqueue: Improve timing of sleep durationsKevin O'Connor2021-02-121-4/+10
| | | | | | | | If any callback is invoked from the pollreactor then obtain a new eventtime before calculating a sleep duration. This improves the timing of events. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chelper: Fix check for failed code buildKevin O'Connor2021-02-071-2/+11
| | | | | | | Commit 73b78af6 inadvertently removed the check for a successful gcc compilation. Add the check back in. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* ds18b20: new module for 1-wire temperature sensor (#3462)Alan Lord2021-02-022-1/+79
| | | | | | | | | Initial commit of code to support 1-wire (Dallas) sensors such as the DS18B20. Requires Linux kernel drivers to create a file in /sysfs which is read by this module, and temperature typically returned to a temperature_fan. Signed-off-by: Alan Lord <alanslists@gmail.com> Signed-off-by: Josh Headapohl <joshhead@gmail.com>
* temperature_fan: Add MAX_SPEED and MIN_SPEED to SET_TEMPERATURE_FAN_TARGET ↵Lane Roberts2021-02-021-6/+34
| | | | | | | command (#3873) Allows setting min_speed and max_speed at runtime, rather than updating the config and restarting. Signed-off-by Lane Roberts <nolatari@vandarin.net>
* resonance_tester: Increase test max_accel to 10K and max_freq to 133 HzDmitry Butyugin2021-02-021-2/+3
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* resonance_tester: Disable input shaping for resonance testingDmitry Butyugin2021-02-021-0/+11
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* adxl345: Add accelerometer chip name to the raw data file nameDmitry Butyugin2021-02-021-6/+9
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* serialqueue: Improve checking of out-of-order messagesKevin O'Connor2021-02-011-15/+23
| | | | | | | Consider any message block that acks a message never sent as an out-of-order block and discard it. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* htu21d: Implement support for min_temp/max_temp checksKevin O'Connor2021-02-011-2/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bme280: Implement support for min_temp/max_temp checksKevin O'Connor2021-02-011-1/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* spi_temperature: Improve handling of min_temp/max_temp overflowsKevin O'Connor2021-02-011-3/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lm75: Implement support for min_temp/max_temp checksKevin O'Connor2021-02-011-2/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lm75: Use getfloat() for reading the lm75_report_time parameterKevin O'Connor2021-02-011-10/+4
| | | | | | Reported by @theopensourcer. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* hd44780: Add hd44780 protocol init configThomas Kroll2021-01-311-1/+6
| | | | | | | LDO OLED needs a different init string. Fixes: #3722 Signed-off-by: Thomas Kroll <t.kroll@outlook.com>
* htu21d: Fix time reporting of temperature measurementsKevin O'Connor2021-01-241-1/+2
| | | | | | The temperature callback takes a "print time" not a "system time". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rpi_temperature: Fix time reporting of temperature measurementsKevin O'Connor2021-01-241-1/+2
| | | | | | The temperature callback takes a "print time" not a "system time". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_mcu: Improve handling when in debug output modeKevin O'Connor2021-01-241-0/+2
| | | | | | | Call mcu_adc.setup_minmax() even in debug output mode so that the debugging output contains a more accurate configuration. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bme280: Disable bme280 when using debug outputKevin O'Connor2021-01-241-0/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rpi_temperature: Fix missing get_report_time_delta() callbackKevin O'Connor2021-01-241-0/+3
| | | | | | Reported by @ronald5555. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rpi_temperature: Disable rpi_temperature when using debug outputKevin O'Connor2021-01-241-0/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rpi_temperature: Minor formatting changesKevin O'Connor2021-01-241-19/+10
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_mcu: Disable the temperature_mcu when using debug outputKevin O'Connor2021-01-241-0/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* menu: Update menu.cfg sd_card menu enable condition (#3826)Chip2021-01-241-5/+35
| | | | | Change SD card enable condition and add Cancel printing option. Signed-off-by: John Smith <login721@gmail.com>
* hall_filament_width_sensor: Fix race condition (#3790)Pascal P2021-01-222-2/+10
| | | | | | Fix race condition of filament width sensor Added fix to similar code of TSL1401CL filament width sensor Signed-off-by: Pascal Pieper <accounts@pascalpieper.de>
* configfile: Add printer.configfile.settings command template parameterKevin O'Connor2021-01-201-7/+16
| | | | | | | Make available the parsed value (or default value) for config options to command templates and to the api server. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_macro: Use deepcopy() on get_status() resultsKevin O'Connor2021-01-204-9/+8
| | | | | | | | | If a get_status() method returns a mutable object (such as a list or dict) then it would be possible for a gcode command template to incorrectly alter the program's internal state. Perform a deepcopy() operation on all get_status() return results to avoid that. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Add a get_status() callback with micro-controller info and statsKevin O'Connor2021-01-191-6/+16
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* winch: Improve python3 compatibilityKevin O'Connor2021-01-171-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* save_variables: Import ConfigParser as configparser for better Python3 supportKevin O'Connor2021-01-171-3/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* menu: Update menu.cfg (#3778)Alex Zellner2021-01-171-21/+21
| | | | | Update min/max in move menu to printer variables. Signed-off-by: Alex Zellner <alexander.zellner@googlemail.com>
* webhooks: Fix use of deprecated Exception.message attribute (#3781)Maël Kerbiriou2021-01-172-5/+5
| | | | | | | | Since Python 2.6, the BaseException.message attribute is deprecated (PEP-352[1]) in favor of e.args[0] or str(e). This commit replaces e.message with str(e). [1] https://www.python.org/dev/peps/pep-0352/ Signed-off-by: Maël Kerbiriou <m431.kerbiriou@gmail.com>
* homing: Fix references to CommandError()Kevin O'Connor2021-01-111-6/+7
| | | | | | | | Commit ea85d419 moved CommandError from homing.py to gcode.py, but failed to fix the references to CommandError within homing.py. Fix that. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Make homing.py an "extras" moduleKevin O'Connor2021-01-087-29/+45
| | | | | | | Move klippy/homing.py to klippy/extras/homing.py and convert the code to an "extras" modules. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Move definition of CommandError and Coord from homing.py to gcode.pyKevin O'Connor2021-01-086-28/+24
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* kinematics: Calculate axis_minimum/axis_maximum in advanceKevin O'Connor2021-01-089-77/+71
| | | | | | | | Calculate the get_status() axis_minimum and axis_maximum fields in advance so that they don't need to be calculated on each get_status() call. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* kinematics: report all axis limits (min/max)Janar Sööt2020-12-288-15/+76
| | | | Signed-off-by: Janar Sööt <janar.soot@gmail.com>