Skip to content

Commit 92c3bec

Browse files
authored
[ln882h] Fix flashing with .bin/raw file (#81)
1 parent 9c1b12a commit 92c3bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ltchiptool/soc/ln882h/util/ln882htool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def flash_write(
208208

209209
# Convert stream to temporary file before sending with YMODEM
210210
with NamedTemporaryFile(delete=False) as f:
211-
f.write(stream.getbuffer())
211+
f.write(stream.read())
212212

213213
self.command(f"upgrade", waitresp=False)
214214

0 commit comments

Comments
 (0)