replicape: Don't require a host alias for the enable_pin default
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
afe853aecc
commit
36b1ccd598
|
@ -3659,8 +3659,9 @@ example.
|
||||||
revision:
|
revision:
|
||||||
# The replicape hardware revision. Currently only revision "B3" is
|
# The replicape hardware revision. Currently only revision "B3" is
|
||||||
# supported. This parameter must be provided.
|
# supported. This parameter must be provided.
|
||||||
#enable_pin: !P9_41
|
#enable_pin: !gpio0_20
|
||||||
# The replicape global enable pin. The default is !P9_41.
|
# The replicape global enable pin. The default is !gpio0_20 (aka
|
||||||
|
# P9_41).
|
||||||
host_mcu:
|
host_mcu:
|
||||||
# The name of the mcu config section that communicates with the
|
# The name of the mcu config section that communicates with the
|
||||||
# Klipper "linux process" mcu instance. This parameter must be
|
# Klipper "linux process" mcu instance. This parameter must be
|
||||||
|
|
|
@ -167,7 +167,7 @@ class Replicape:
|
||||||
config.getchoice('revision', revisions)
|
config.getchoice('revision', revisions)
|
||||||
self.host_mcu = mcu.get_printer_mcu(printer, config.get('host_mcu'))
|
self.host_mcu = mcu.get_printer_mcu(printer, config.get('host_mcu'))
|
||||||
# Setup enable pin
|
# Setup enable pin
|
||||||
enable_pin = config.get('enable_pin', '!P9_41')
|
enable_pin = config.get('enable_pin', '!gpio0_20')
|
||||||
self.mcu_pwm_enable = ppins.setup_pin('digital_out', enable_pin)
|
self.mcu_pwm_enable = ppins.setup_pin('digital_out', enable_pin)
|
||||||
self.mcu_pwm_enable.setup_max_duration(0.)
|
self.mcu_pwm_enable.setup_max_duration(0.)
|
||||||
self.mcu_pwm_start_value = self.mcu_pwm_shutdown_value = False
|
self.mcu_pwm_start_value = self.mcu_pwm_shutdown_value = False
|
||||||
|
|
Loading…
Reference in New Issue