Better logging and added BHI160 sensor

This commit is contained in:
dario
2024-01-13 22:54:13 +01:00
parent 4def93041e
commit 29db73ccd4
6 changed files with 44 additions and 16 deletions

View File

@@ -26,4 +26,9 @@ class Downtime(Transform):
if self.__state == 1:
return x
return np.zeros_like(x)
if np.isscalar(x):
x = 0
else:
x = np.zeros_like(x)
return x