not all have amp config

This commit is contained in:
Adeeb Shihadeh
2024-11-16 17:30:18 -08:00
parent 2f9abf8b6e
commit 42325499e0
+3 -6
View File
@@ -99,10 +99,6 @@ CONFIGS = {
],
}
CONFIGS["tiki"] = [
*CONFIGS["tizi"],
]
class Amplifier:
AMP_I2C_BUS = 0
AMP_ADDRESS = 0x10
@@ -155,5 +151,6 @@ if __name__ == "__main__":
model = f.read().strip('\x00')
model = model.split('comma ')[-1]
amp = Amplifier()
amp.initialize_configuration(model)
if model in CONFIGS:
amp = Amplifier()
amp.initialize_configuration(model)