Skip to content

Commit

Permalink
Merge pull request #128 from Luos-io/rc_2.0.4
Browse files Browse the repository at this point in the history
Changelog :Pyluos version 2.0.4

🛠️ Fix: [Detection] Stlink wake-up on first detection
  • Loading branch information
JeromeGalan authored Feb 17, 2022
2 parents 3527837 + 2ca2762 commit ffa7d13
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pyluos/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ def play(self):

def _setup(self):
self.logger.info('Sending detection signal.')
self._send({})
time.sleep(0.01)
self._send({'detection': {}})
self.logger.info('Waiting for routing table...')
startTime = time.time()
Expand Down
2 changes: 2 additions & 0 deletions pyluos/tools/discover.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def serial_discover():
port = serial.Serial(serial_host, 1000000, timeout=0.05)
except:
continue
port.write("{}\r\n".encode())
time.sleep(0.01)
port.write("{\"discover\": {}}\r\n".encode())
port.flush()
for x in range(10):
Expand Down
2 changes: 1 addition & 1 deletion pyluos/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '2.0.3'
version = '2.0.4'

0 comments on commit ffa7d13

Please sign in to comment.