Old orbiter sensor settings not accepted in Ratos 2.1

This used to work on V-Core 3.1 Ratos 2.02:
Orbiter Filament Sensor
[filament_switch_sensor filament_sensor]
event_delay: 0.1
pause_on_runout: True
r#unout_gcode: UNLOAD_FILAMENT
insert_gcode: LOAD_FILAMENT
switch_pin: ^toolboard:PB3

[gcode_button sensor_button]
pin: ^toolboard:PB4
press_gcode: UNLOAD_FILAMENT

but not anymore when I paste it into printer.cfg. Any help would be appreciated.
Solution
GitHub
The RatOS modular klipper configuration. Contribute to Rat-OS/RatOS-configuration development by creating an account on GitHub.
Was this page helpful?