Commit Graph

4743 Commits

Author SHA1 Message Date
Kevin O'Connor 8268478006 homing: Fix bug in multi_complete()
Reported by @skrogh.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-05-13 13:53:17 -04:00
Kevin O'Connor c14118e9c6 misc: Import misc.h in all files defining console_sendf()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-05-13 11:22:47 -04:00
Kevin O'Connor a6b3d2f18f stm32: Remove unused header from can.c
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-05-10 15:03:55 -04:00
Kevin O'Connor 2c441b4502 canbus: Rename CANBUS_CMD_SET_NODEID to CANBUS_CMD_SET_KLIPPER_NODEID
Rename the command name for consistency with the canbus_query.py
script.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-05-10 11:55:06 -04:00
Kevin O'Connor be4b8b17f2 docs: Minor CanBoot documentation fixes
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-05-10 11:55:06 -04:00
Eric Callahan 88731c2836 scripts: identify application in canbus_query
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-05-10 11:48:06 -04:00
Eric Callahan 95d06c95e3 docs: add CanBoot documentation to bootloaders.md
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-05-10 11:48:06 -04:00
Eric Callahan 5ec3939f34 lib: add flash_can.py
This script may be used to update Klipper firmware for CAN
nodes running the CanBoot bootloader.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-05-10 11:48:06 -04:00
Eric Callahan 60625f4422 stm32: add 8 KiB bootloader option for F0x2 devices
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-05-10 11:48:06 -04:00
Eric Callahan 81ff8e125c canbus: send 8 bytes in the id response
The last byte contains the "node id" command, which is used to
identify the application.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-05-10 11:48:06 -04:00
Eric Callahan 3505f4cae5 canbus: add bootloader support
This adds a command which allows an external script to broadcast a
bootloader request, using a supplied UUID to match the request.
Included is a method to process requests to enter the canboot
bootloader.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-05-10 11:48:06 -04:00
3-5-20 b44eee609a
docs: Update G-Codes.md (#5487)
Typo correction: my -> by

Signed-off-by: Oscar Cetnarowski <0.007954545@proton.me>
2022-05-09 22:20:06 -04:00
Kevin O'Connor a94146b554 pins: Improve pin description checks
Make sure whitespace isn't in the pin description.  Also make sure an
alias doesn't map to an invalid pin.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-05-09 16:33:46 -04:00
Kevin O'Connor c263f76f9f stm32: Fix typo in i2c.c
Reported by @kaidegit.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-05-07 10:13:34 -04:00
Kevin O'Connor 7e76bd561a klippy: Minor changes to message protocol error
Minor indentation and variable name changes.

Don't remove linebreaks from message_protocol_error lines.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-05-06 21:06:13 -04:00
Felicia Hummel b18786bc91
klippy: Reworked the MCU protocol error message (#5470)
The MCU protocol error message often confuses users, especially after getting bombarded with the config format error line. This PR tries to improve it and has the following goals:

- Put the technical error at the end to prevent confusion and avoid the immediate jump to help channels instead of continuing to read
- Inform the user first what the type of error is (In this case: MCU Protocol error) and not at the end of the long error message
- Give the users a clear instruction what to do (pretty much unchanged), but possibly more approachable because the user is not confused by the technical error anymore
- Shows the version numbers of Klipper separate from all MCU version numbers so that it is more obvious that this is the version of Klipper
- Separates the version numbers between outdated MCUs and up-to-date MCUs, so that it becomes obvious if a MCU flash failed because the MCU doesn't disappear from the outdated list
- Previously, when viewing the errors in a web frontend, additional line breaks made it extremely hard to read the message, sometimes with as little as one word on one line. The error messages are now formatted to not have rogue line breaks, improving readability.

Signed-off-by: Felicia Alexa Hummel <felicia@drachenkatze.org>
2022-05-06 20:51:34 -04:00
Kevin O'Connor 261944cc7b graphstats: Improve labels on twinx() graphs
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-05-06 15:05:04 -04:00
Kevin O'Connor 6f0b7c7a2a graphstats: Fix system graph title
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-05-06 15:01:27 -04:00
Kevin O'Connor 661f5b08c8 docs: Fix typo in Benchmarks.md
Reported by @kaidegit.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-05-06 14:54:50 -04:00
Kevin O'Connor c4232bea2e docs: Note pins used for stm32flash in Bootloaders.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-05-04 13:54:42 -04:00
Kevin O'Connor 722ad4a1d2 docs: Update Example_Configs.md to note that baud should be 250000
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-30 14:51:14 -04:00
Kevin O'Connor e43fd4fab0 docs: Note to run DELTA_CALIBRATE before DELTA_ANALYZE in Delta_Calibrate.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-29 13:58:05 -04:00
Kevin O'Connor 1eb6afdbe5 docs: List only micro-controller names in benchmarks table in Features.md
There is concern that some users are interpreting the benchmark table
in Features.md as a list of "supported boards" or possibly
"recommended boards".  This was not the intent.

Remove the board names from the list to make it more clear the intent
is only to describe the benchmarks.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-29 12:20:41 -04:00
Adrian Keet d9daeb0803 config: Pull up endstop_pins on Fysetc S6/Spider
Signed-off-by: Adrian Keet <arkeet@gmail.com>
2022-04-26 20:53:14 -04:00
JamesH1978 542486fba7
stm32: Add 64kib bootloader offset option to STM32F401 (#5457)
This is needed for the Creality Ender 3 S1 with the STM32F401 chips to enable a 64kib bootloader offset

Signed-off-by: James Hartley <james@hartleyns.com>
2022-04-25 12:07:48 -04:00
Eric Callahan dc28257a75 spi_flash: reduce speed to 400K
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-25 12:02:45 -04:00
Eric Callahan ccae1e3ec8 spi_flash: validate mcu configuration
Prior to attempting a flash, verify that the MCU is successfully
configured.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-25 12:02:45 -04:00
Kevin O'Connor 5517a856cc motan: Fix typo in error report
Reported by @Ludy87.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-23 21:50:27 -04:00
Kevin O'Connor de14d106a1 shaper_calibrate: Add missing import
Reported by @Ludy87.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-23 21:49:50 -04:00
JamesH1978 a829a4c93f
printer-creality-ender3pro-2020: Update info on chip types (#5445)
Added flash info that some Ender 3 Pro's shipped in 2022 have the GD32F103 chip

Signed-off-by: James Hartley <james@hartleyns.com>
2022-04-23 21:25:07 -04:00
Kevin O'Connor 07a90902a5 docs: Improve wording of screws_tilt_adjust in Config_Reference.md
Reported by @JamesH1978.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-23 21:22:02 -04:00
Kevin O'Connor a10b2805de config: Fix incorrect pin in printer-monoprice-select-mini-v2-2018.cfg
Reported by @bkw777.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-23 21:16:09 -04:00
Eric Callahan 7db07c46e6 spi_flash: support spi protocol changes
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-22 20:46:45 -04:00
Martin Hierholzer 7793784640 spicmds: Allow inversion of CS pin for SPI busses
Signed-off-by: Martin Hierholzer <martin@hierholzer.info>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-22 13:25:03 -04:00
Kevin O'Connor a02da85101 docs: Fix typo in query_adc section of G-Codes.md
Reported by @jakep82.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-21 19:20:46 -04:00
Kevin O'Connor fb3bae4531 neopixel: Simplify color_order parsing
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-18 12:55:32 -04:00
Kevin O'Connor 260fd7d367 pca9632: Fix color_order assignment
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-18 11:07:05 -04:00
Kevin O'Connor fb02e2b577 neopixel: Fix color_order assignment
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-18 10:55:35 -04:00
Kevin O'Connor 5f0885958d neopixel: Support chains with a mix of color_order
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-18 10:16:10 -04:00
Kevin O'Connor 53a7f1dd76 led: Remove has_white check from LEDHelper
There is no harm in checking for a white config setting.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-18 09:34:25 -04:00
Kevin O'Connor 630d3b3444 led: Fix SET_LED TRANSMIT=1 handling
If the final update in a series of SET_LED update commands didn't
alter a color than the transmit would not occur - even if prior
commands did make color changes.  Refactor the update code and fix.

Reported by @mstansberry.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-18 08:55:21 -04:00
alstoepp 44567879f6
stm32: Add STM32F072 16KiB bootloader option (#5404)
Signed-off-by: Alexander Stöpperger <a.stoepperger@gmx-topmail.de>
2022-04-13 11:22:04 -04:00
laurienzu 4c8d1b813c
config: Updated and created new TwoTrees configs to avoid confusion (#5365)
* Update and rename printer-twotrees-sapphire-pro-2020.cfg to printer-twotrees-sapphire-pro-sp-3.cfg

I renamed the file since the printer name now changed and is sold with this name, there is only one version so year can be removed.

-Added detailed instructions for flashing in the header.
-Corrected rotation distances for axes, it was wrong.
-Added gear ratio for extruder that is useful for future changes.
-Added heater fan to HE1 pins for automatic shutdown with temp.
-Reduced speed and accel for Z since a 2mm screw is used.

* Create printer-twotrees-sapphire-plus-sp-5-v1.1.cfg

I created the file since the printer name now changed and is sold with this name, there are 2 main versions (V1 and V1.1) so I will make 2 different configs for them since there are some hardware change and people are confused in what to change.

The difference with V1 is that all 2225 drivers are now used, since microsteps tables change for these drivers and by factory all jumpers are in the microstep setting is 32, people don't know this and will have half movement with the v1 config, there is a lot of confusion in communities so I think adding another file is the best option.

Signed-off-by:  Lorenzo Cascone <laurienzudesign@gmail.com>
2022-04-13 11:07:13 -04:00
dkabot 90ebed1fe4
Don't crash when using naive time remaining (#119)
Editing a tuple is not allowed in Python, it needs to be either converted to a List or re-created.
2022-04-11 23:11:29 +02:00
Kevin O'Connor 4a8a76ead8 docs: Update temperature_fan PID documentation in Config_Reference.md
Reported by @dewi-ny-je.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-11 11:46:24 -04:00
Kevin O'Connor 38e82e8d8f stm32: Add support for additional i2c buses
Reported by @StoneColdCrazy.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-11 10:58:34 -04:00
Karl Bowden 5d82be2f5d
docs: Add link to linux mcu neopixels config docs (#5402)
The reference to the linux mcu was helpful to understand what a linux mcu was but didn't help with understanding the technical reasons why it's not supported.

Signed-off-by: Karl Bowden <karl@bearded.sexy>
2022-04-11 10:35:38 -04:00
Uli 240f8ea60b
htu21d: SI7021 is has id 0x15 (#5375)
This is most probably the result of a copy paste error. All vendor documentation for SI7021 (e.g. https://www.silabs.com/documents/public/data-sheets/Si7021-A20.pdf) points to 21 and it actually only works when adapted to 0x15 (=21).

Signed-off-by: Uli Wolf <github+klipper@wolf-u.li>
2022-04-11 10:33:41 -04:00
Kevin O'Connor 4d4c8d8f94 docs: Add link to Moonraker in API_Server.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-09 19:32:38 -04:00
Kevin O'Connor 6e61e47a23 docs: Fix smarteffector link in G-Codes.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-04-09 19:13:30 -04:00