From 2dd8024e756198f3bc888f07da9d6d5d28b0b3e7 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sat, 11 May 2024 07:42:57 +0000 Subject: [PATCH] style: format code with Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf This commit fixes the style issues introduced in 512bf8f according to the output from Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf. Details: None --- hardware_interface/i2c_communication.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hardware_interface/i2c_communication.py b/hardware_interface/i2c_communication.py index 6a11813..8c8a4e0 100644 --- a/hardware_interface/i2c_communication.py +++ b/hardware_interface/i2c_communication.py @@ -1,5 +1,6 @@ import smbus + def open_i2c_bus(bus_number): # Open an I2C bus using smbus or Adafruit-I2C @@ -7,11 +8,13 @@ def open_i2c_bus(bus_number): return bus + def write_i2c_data(bus, address, data): # Write data to an I2C device bus.write_i2c_block_data(address, 0, data) + def read_i2c_data(bus, address, num_bytes): # Read data from an I2C device