- if self._single_byte_bounds:
- self._bus.send(True, bytes([command]) + data, toggle_every_byte=True)
+ self._bus.begin_transaction()
+ if self._data_as_commands:
+ if command is not None:
+ self._bus.send(True, bytes([command]), toggle_every_byte=True)
+ self._bus.send(command is not None, data)