diff --git a/mirobo/device.py b/mirobo/device.py index f01b5b6dd..eaf1adfd7 100644 --- a/mirobo/device.py +++ b/mirobo/device.py @@ -137,8 +137,7 @@ def discover(addr: str=None) -> Any: s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) s.settimeout(timeout) - for _ in range(3): - s.sendto(helobytes, (addr, 54321)) + s.sendto(helobytes, (addr, 54321)) while True: try: data, addr = s.recvfrom(1024)