How can i override a ratos variable for different adxl_chips?

Id like to use the beacon accel from T0 and a usb c nozzle accel for T1 Whats the best way to specify/override this? RatOS.cfg wrongly defines:
[gcode_macro RatOS]
variable_adxl_chip: ["beacon beacon", "adxl345 rpi"] # toolheads adxl chip names
[gcode_macro RatOS]
variable_adxl_chip: ["beacon beacon", "adxl345 rpi"] # toolheads adxl chip names
which should be "beacon" whats the proper way to override this? im not supposed to touch the ratos.cfg right? I have tried
[Variables]
adxl_chip = ['beacon', 'adxl345 nozzle_adxl']
[Variables]
adxl_chip = ['beacon', 'adxl345 nozzle_adxl']
which does not seem to work 🙁
Solution:
you should be able to just write this in the printer.cfg:
[gcode_macro RatOS]
variable_adxl_chip: ["beacon", "adxl345 rpi"]
[gcode_macro RatOS]
variable_adxl_chip: ["beacon", "adxl345 rpi"]
...
Jump to solution
2 Replies
Solution
Sören
Sören2mo ago
you should be able to just write this in the printer.cfg:
[gcode_macro RatOS]
variable_adxl_chip: ["beacon", "adxl345 rpi"]
[gcode_macro RatOS]
variable_adxl_chip: ["beacon", "adxl345 rpi"]
xkuyax
xkuyaxOP2mo ago
thank you! that appears to be working!

Did you find this page helpful?