From a871fb060e2ef83fadb271ec44015013bd063e78 Mon Sep 17 00:00:00 2001
From: Samuel Tardieu <sam@rfc1149.net>
Date: Fri, 19 Jul 2024 08:35:47 +0200
Subject: [PATCH] Don't use uppercase for instance variables

---
 controller/python/controller.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/controller/python/controller.py b/controller/python/controller.py
index af426b0..dea0eeb 100644
--- a/controller/python/controller.py
+++ b/controller/python/controller.py
@@ -25,11 +25,11 @@ class Controller:
     RESET = 0xE0
     DEVICE_ID = 0xF0
 
-    def __init__(self, i2cbus=8):
+    def __init__(self, i2c_bus=8):
         import smbus
 
-        self.I2C_BUS = i2cbus
-        self.i2c = smbus.SMBus(self.I2C_BUS)
+        self.i2c_bus = i2c_bus
+        self.i2c = smbus.SMBus(self.i2c_bus)
 
         self.check_firmware_version()
 
-- 
GitLab