mirror of
https://codeberg.org/SiB64/turbo_weather.git
synced 2026-05-01 15:14:22 +02:00
Compare commits
No commits in common. "cce9ded5a295ab1df2a66fd79989531d075aecc3" and "e5af295232eebdf26472e696b2e89c0b3d5928c3" have entirely different histories.
cce9ded5a2
...
e5af295232
2 changed files with 3 additions and 3 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit eebd4bb43039a2ecf63aa7c2fdbe1c4edf469393
|
||||
Subproject commit 7f5400fa08129800f103be9a4f3caeeb677c5219
|
||||
|
|
@ -18,11 +18,11 @@ class uart(threading.Thread):
|
|||
self.reader_lock = threading.Lock()
|
||||
self.resp_ready = threading.Condition()
|
||||
self.alive = True
|
||||
threading.Thread.__init__(self, target=self._reader)
|
||||
threading.Thread.__init__(self, target=self.reader)
|
||||
self.daemon = True
|
||||
self.start()
|
||||
|
||||
def _reader(self):
|
||||
def reader(self):
|
||||
data = b""
|
||||
while self.alive:
|
||||
data += self.serial.read_until(b'\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue