kopia lustrzana https://github.com/micropython/micropython
mpremote/transport_serial.py: Fix encoding error in PyboardCommand.
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>pull/13586/head
rodzic
0285cb2bf4
commit
c186c12173
|
@ -982,7 +982,7 @@ class PyboardCommand:
|
||||||
if n == 0:
|
if n == 0:
|
||||||
return ""
|
return ""
|
||||||
else:
|
else:
|
||||||
return str(self.fin.read(n), "utf8")
|
return str(self.fin.read(n), "utf8", errors="replace")
|
||||||
|
|
||||||
def wr_s8(self, i):
|
def wr_s8(self, i):
|
||||||
self.fout.write(struct.pack("<b", i))
|
self.fout.write(struct.pack("<b", i))
|
||||||
|
|
Ładowanie…
Reference in New Issue