mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-28 07:51:19 +01:00
Merge pull request #18754 from keestux/avoid-using-deprecated
dist/tools/pyterm: avoid deprecated .setDaemon
This commit is contained in:
commit
9734f6f980
3
dist/tools/pyterm/pyterm
vendored
3
dist/tools/pyterm/pyterm
vendored
@ -285,8 +285,7 @@ class SerCmd(cmd.Cmd):
|
||||
self.onecmd(self.precmd(command))
|
||||
|
||||
# start serial->console thread
|
||||
receiver_thread = threading.Thread(target=self.reader)
|
||||
receiver_thread.setDaemon(1)
|
||||
receiver_thread = threading.Thread(target=self.reader, daemon=True)
|
||||
receiver_thread.start()
|
||||
|
||||
def precmd(self, line):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user