Skip to content

Commit

Permalink
Fixed detection of previous servo
Browse files Browse the repository at this point in the history
  • Loading branch information
moggieuk committed Dec 10, 2024
1 parent d06b59d commit 96903f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ read_previous_mmu_type() {
HAS_SERVO="yes"
dest_cfg="${KLIPPER_CONFIG_HOME}/mmu/base/mmu_hardware.cfg"
if [ -f "${dest_cfg}" ]; then
if ! grep -q "^\[mmu_servo selector_servo\]" "${dest_cfg}"; then
if ! grep -q "^\[mmu_servo selector_servo\]" "${dest_cfg}" && ! grep -q "^\[mmu_servo mmu_servo\]" "${dest_cfg}"; then
HAS_SERVO="no"
fi
fi
Expand Down

0 comments on commit 96903f8

Please sign in to comment.