mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-03-04 17:14:38 -07:00
bus: Note mcu code deprecation if missing i2c_transfer
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
ee28dec93d
commit
6bbc90697a
1 changed files with 2 additions and 0 deletions
|
|
@ -233,6 +233,8 @@ class MCU_I2C:
|
|||
"i2c_read oid=%c reg=%*s read_len=%u",
|
||||
"i2c_read_response oid=%c response=%*s", oid=self.oid,
|
||||
cq=self.cmd_queue)
|
||||
configfile = self.mcu.get_printer().lookup_object('configfile')
|
||||
configfile.deprecate_mcu_code(self.mcu, 'i2c_transfer')
|
||||
else:
|
||||
self.i2c_transfer_cmd = self.mcu.lookup_query_command(
|
||||
"i2c_transfer oid=%c write=%*s read_len=%u",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue