diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2025-07-14 14:58:49 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2025-07-22 14:11:17 -0400 |
commit | 116b304541f75a7975e7cdfb0689e673a9782d09 (patch) | |
tree | 7f500d36749919a6ca2c985a0ad0a2fc6cff8d1d /klippy/extras/quad_gantry_level.py | |
parent | 3219712c1715f5d84f23b5b7fc406812bc2bc6db (diff) | |
download | kutter-116b304541f75a7975e7cdfb0689e673a9782d09.tar.gz kutter-116b304541f75a7975e7cdfb0689e673a9782d09.tar.xz kutter-116b304541f75a7975e7cdfb0689e673a9782d09.zip |
avr: Switch to input state prior to enabling pullup in gpio_in_reset()
If switching a pin from output low to input with pullup, there is an
intermediate state of either driven high or high impedance without a
pullup. Similarly, when switching from output high to input without a
pullup, there is an intermediate state of either driven low or high
impedence with a pullup. In both cases it is preferable for the
latter transition.
Also, calculate the final setting prior to making any changes to
reduce the time in that intermediate state.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/quad_gantry_level.py')
0 files changed, 0 insertions, 0 deletions