Kevin O'Connor
a657aab0bf
tmc2660: Add set_current()/get_current() helpers to TMC2660CurrentHelper
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-27 10:39:46 -05:00
Kevin O'Connor
8312843bbe
tmc5160: Add set_current()/get_current() helpers to TMC5160CurrentHelper
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-27 10:39:46 -05:00
Kevin O'Connor
9c9f78037b
tmc2130: Add set_current()/get_current() helper functions to TMCCurrentHelper
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-27 10:39:46 -05:00
Andre LeBlanc
3fc72da9ae
virtual_sdcard: exact filename match before case insensitive one
...
currently, if there are 2 files on the virtual sd card whose names differ only in
case (eg. MyFile.gcode vs myfile.gcode) the actual file that gets loaded is at
best unpredictable. this patch checks for an exact match before attempting a
case-insensitive one.
Signed-off-by: Andre LeBlanc <andrepleblanc@gmail.com>
2021-02-26 22:53:35 -05:00
Marco D'Alessio
c7688c6bca
tmc2130: Add spi daisy chain support
...
This patch adds the ability to daisy-chain multiple tmc2130 and
tmc5160 drivers.
Signed-off-by: Marco D'Alessio <marco@wrecklab.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-26 10:54:47 -05:00
Kevin O'Connor
a8742e982d
tmc: Improve error message on missing microsteps config
...
If microsteps is missing, warn about it in the stepper config section,
not the tmc config section.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-23 12:00:08 -05:00
Kevin O'Connor
2aa2e91f2c
Revert "bme280: Rename sensor_type from BME280 to bme280"
...
This reverts commit ac61f8b726
.
Many temperature sensors are capitalized, so don't make this chaneg to
the bme280.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-20 15:39:03 -05:00
Janar Sööt
92cc286159
menu: Default menu should check extruders have heaters ( #3969 )
...
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>
2021-02-20 11:33:34 -05:00
Janar Sööt
5a7fbe671e
menu: redesigned name scroller & menu rendering ( #3837 )
...
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
2021-02-20 11:31:03 -05:00
Kevin O'Connor
ac61f8b726
bme280: Rename sensor_type from BME280 to bme280
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-20 09:23:39 -05:00
Kevin O'Connor
c29585f7f3
temperature_host: Rename "path" config to "sensor_path"
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-20 09:23:13 -05:00
Kevin O'Connor
227d9bdbcf
temperature_host: Improve backwards compatibility check
...
Don't register two names for the same instance of the sensor.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-19 18:51:42 -05:00
Evgenii
3d35c003db
temperature_host: Rename rpi_temperature and add support for custom paths
...
Signed-off-by: Evgenii Shavrin <shavrin0591@gmail.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-19 18:44:28 -05:00
Christian S
bc2f6faa17
probe: Add last_z_result to get the latest z result in an Macro ( #3835 )
...
Signed-off-by: Christian Schnellrieder <schnello.android@gmail.com>
2021-02-18 22:03:32 -05:00
Arjan Mels
b2cbb9aa96
idle_timeout: Add help to SET_IDLE_TIMEOUT ( #3945 )
...
Signed-off-by: Arjan Mels <github@mels.email>
2021-02-18 20:32:46 -05:00
Alan Lord
7d4df65920
ds18b20: new module for 1-wire temperature sensor ( #3462 )
...
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>
2021-02-02 14:34:56 -05:00
Lane Roberts
19397a0a2b
temperature_fan: Add MAX_SPEED and MIN_SPEED to SET_TEMPERATURE_FAN_TARGET 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>
2021-02-02 14:30:04 -05:00
Dmitry Butyugin
d136b1e41a
resonance_tester: Increase test max_accel to 10K and max_freq to 133 Hz
...
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2021-02-02 14:13:24 -05:00
Dmitry Butyugin
a8b282d67a
resonance_tester: Disable input shaping for resonance testing
...
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2021-02-02 14:13:24 -05:00
Dmitry Butyugin
0fb2449be0
adxl345: Add accelerometer chip name to the raw data file name
...
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2021-02-02 14:13:24 -05:00
Kevin O'Connor
6e79152f47
htu21d: Implement support for min_temp/max_temp checks
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-01 11:30:27 -05:00
Kevin O'Connor
a15952770b
bme280: Implement support for min_temp/max_temp checks
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-01 11:27:16 -05:00
Kevin O'Connor
74244ab0eb
spi_temperature: Improve handling of min_temp/max_temp overflows
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-01 10:37:19 -05:00
Kevin O'Connor
333f8c210f
lm75: Implement support for min_temp/max_temp checks
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-01 10:37:19 -05:00
Kevin O'Connor
7775e0ed54
lm75: Use getfloat() for reading the lm75_report_time parameter
...
Reported by @theopensourcer.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-02-01 10:26:14 -05:00
Thomas Kroll
60e4cddf36
hd44780: Add hd44780 protocol init config
...
LDO OLED needs a different init string.
Fixes : #3722
Signed-off-by: Thomas Kroll <t.kroll@outlook.com>
2021-01-31 19:35:40 -05:00
Kevin O'Connor
5d960aef37
htu21d: Fix time reporting of temperature measurements
...
The temperature callback takes a "print time" not a "system time".
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-01-24 15:38:16 -05:00
Kevin O'Connor
8de86ad51f
rpi_temperature: Fix time reporting of temperature measurements
...
The temperature callback takes a "print time" not a "system time".
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-01-24 15:37:37 -05:00
Kevin O'Connor
bded15b743
temperature_mcu: Improve handling when in debug output mode
...
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>
2021-01-24 15:28:16 -05:00
Kevin O'Connor
04179f3eae
bme280: Disable bme280 when using debug output
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-01-24 15:19:43 -05:00
Kevin O'Connor
c3e3b2280a
rpi_temperature: Fix missing get_report_time_delta() callback
...
Reported by @ronald5555.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-01-24 14:00:41 -05:00
Kevin O'Connor
cf8d5a6606
rpi_temperature: Disable rpi_temperature when using debug output
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-01-24 13:59:09 -05:00
Kevin O'Connor
29831a2f69
rpi_temperature: Minor formatting changes
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-01-24 13:58:54 -05:00
Kevin O'Connor
db86a4edcb
temperature_mcu: Disable the temperature_mcu when using debug output
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-01-24 13:56:57 -05:00
Chip
b9899a23a3
menu: Update menu.cfg sd_card menu enable condition ( #3826 )
...
Change SD card enable condition and add Cancel printing option.
Signed-off-by: John Smith <login721@gmail.com>
2021-01-24 10:35:05 -05:00
Pascal P
1e2eb9a4de
hall_filament_width_sensor: Fix race condition ( #3790 )
...
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>
2021-01-22 13:41:34 -05:00
Kevin O'Connor
023a985bfc
gcode_macro: Use deepcopy() on get_status() results
...
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>
2021-01-20 16:25:25 -05:00
Kevin O'Connor
0e9cb2abac
save_variables: Import ConfigParser as configparser for better Python3 support
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-01-17 22:46:04 -05:00
Alex Zellner
dac0fba50d
menu: Update menu.cfg ( #3778 )
...
Update min/max in move menu to printer variables.
Signed-off-by: Alex Zellner <alexander.zellner@googlemail.com>
2021-01-17 22:39:54 -05:00
Maël Kerbiriou
9278f56e36
webhooks: Fix use of deprecated Exception.message attribute ( #3781 )
...
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>
2021-01-17 22:37:41 -05:00
Kevin O'Connor
c57352a336
homing: Fix references to CommandError()
...
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>
2021-01-11 10:01:14 -05:00
Kevin O'Connor
8260a3a0c3
homing: Make homing.py an "extras" module
...
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>
2021-01-08 14:01:34 -05:00
Kevin O'Connor
ea85d419de
gcode: Move definition of CommandError and Coord from homing.py to gcode.py
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-01-08 12:07:45 -05:00
Justin Schuh
a5ebe5825a
heaters: Make MINIMUM optional for TEMPERATURE_WAIT command ( #3674 )
...
Signed-off-by: Justin Schuh <code@justinschuh.com>
2020-12-24 11:34:26 -05:00
Justin Schuh
1a9218532b
heaters: Add MAXIMUM option to TEMPERATURE_WAIT command
...
Signed-off-by: Justin Schuh <code@justinschuh.com>
2020-12-23 18:16:46 -05:00
Dmitry Butyugin
1b1a97e8bd
shaper_calibrate: Choose input shapers accounting smoothing
...
Improved algorithm to choose the 'optimal' shaper frequency taking
shaper smoothing into account. This may choose a frequency with
slightly more vibrations but less smoothing. Also allow users to
limit the maximum input shaper smoothing.
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2020-12-22 18:37:41 -05:00
Kevin O'Connor
a637c2f110
heaters: Fix TEMPERATURE_WAIT command with extruder and heater_bed
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-12-22 15:22:13 -05:00
Kevin O'Connor
f84a570dde
temperature_mcu: Fix slope on stm32f070
...
The stm32f070 has a negative temperature slope.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-12-19 11:19:44 -05:00
Kevin O'Connor
e0395c69aa
temperature_mcu: Fix slope on stm32f1
...
The stm32f103 has a negative temperature slope.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-12-19 10:38:50 -05:00
Kevin O'Connor
96eba9f2df
endstop_phase: Obtain phases directly from stepper microsteps config
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-12-18 10:30:32 -05:00