Skip to content

Commit 2e653c0

Browse files
committed
specifically name arguments now that we require it
1 parent 9a16406 commit 2e653c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_bus_device/i2c_device.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ def write_then_readinto(self, out_buffer, in_buffer, *,
131131
if hasattr(self.i2c, 'writeto_then_readfrom'):
132132
# In linux, at least, this is a special kernel function call
133133
self.i2c.writeto_then_readfrom(self.device_address, out_buffer, in_buffer,
134-
out_start, out_end, in_start, in_end, stop)
134+
out_start=out_start, out_end=out_end,
135+
in_start=in_start, in_end=in_end, stop=stop)
135136
else:
136137
# If we don't have a special implementation, we can fake it with two calls
137138
self.write(out_buffer, start=out_start, end=out_end, stop=stop)

0 commit comments

Comments
 (0)