Refactor IR polling parameters for improved performance
This commit is contained in:
+2
-2
@@ -132,8 +132,8 @@ class IRRxTxPollPair:
|
||||
|
||||
@staticmethod
|
||||
def _seen_to_state(seen: bool) -> int:
|
||||
# 1 = луч перекрыт, 0 = луч не перекрыт
|
||||
return 1 if seen else 0
|
||||
# 0 = луч перекрыт, 1 = луч не перекрыт
|
||||
return 0 if seen else 1
|
||||
|
||||
@property
|
||||
def last_state(self) -> int | None:
|
||||
|
||||
Reference in New Issue
Block a user