Fix switch bank callback and temperature/humidity data

This commit is contained in:
2026-01-05 08:39:41 +01:00
parent d6ce21ff03
commit c6857cd3fa
2 changed files with 40 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
'''
"""
!!! Dies ist noch im Ideen-Stadium
WIP TBD
@@ -75,7 +75,7 @@ xdrRoll
xdrPitch
xdrYaw
'''
"""
import datetime
import time
@@ -379,7 +379,11 @@ class SwitchBank():
def setCallback(self, index, cb_function):
if index < 1 or index > 28:
raise IndexError("Switch index out of range")
self.callback[index] = cb_function
self.callback[index-1] = cb_function
def __str__(self):
out = f"Switch bank instance #{self.instance}"
return out
class Tank():
"""