mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
combine some todos
This commit is contained in:
parent
63117a4bc5
commit
d95ab7781e
|
|
@ -13,8 +13,7 @@
|
||||||
@date: 15.01.2018
|
@date: 15.01.2018
|
||||||
@author: Bastian Schroll
|
@author: Bastian Schroll
|
||||||
@description: Class to implement a filter for double alarms
|
@description: Class to implement a filter for double alarms
|
||||||
@todo test, refactor and document
|
@todo test, refactor and document / check_msg is not implemented yet
|
||||||
@todo check_msg is not implemented yet
|
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@
|
||||||
@date: 15.01.2018
|
@date: 15.01.2018
|
||||||
@author: Bastian Schroll
|
@author: Bastian Schroll
|
||||||
@description: Little Helper to replace wildcards in stings
|
@description: Little Helper to replace wildcards in stings
|
||||||
@todo not completed yet
|
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
|
|
|
||||||
|
|
@ -91,8 +91,7 @@ try:
|
||||||
bwPacket.addClientData()
|
bwPacket.addClientData()
|
||||||
bwClient.transmit(str(bwPacket))
|
bwClient.transmit(str(bwPacket))
|
||||||
|
|
||||||
# todo should we do this in an thread, to not block receiving ???
|
# todo should we do this in an thread, to not block receiving ??? but then we should use transmit() and receive() with Lock()
|
||||||
# todo but then we should use transmit() and receive() with Lock()
|
|
||||||
failedTransmits = 0
|
failedTransmits = 0
|
||||||
while not bwClient.receive() == "[ack]": # wait for ack or timeout
|
while not bwClient.receive() == "[ack]": # wait for ack or timeout
|
||||||
if failedTransmits >= 3:
|
if failedTransmits >= 3:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue