Refactor IR polling parameters for improved performance

This commit is contained in:
Artem Kashaev
2025-12-26 14:23:06 +05:00
parent 5521d8da5d
commit 7a455bd6ec
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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: