Skip to content

Commit 82e69f1

Browse files
authored
Open ulp file in binary mode instead of text mode
Avoid rising "unicode exception" when running from mp1.24
1 parent 37e68c5 commit 82e69f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ That file can then be loaded directly without assembling the source again.
118118
from esp32 import ULP
119119
120120
ulp = ULP()
121-
with open('test.ulp', 'r') as f:
121+
with open('test.ulp', 'rb') as f:
122122
# load the binary into RTC memory
123123
ulp.load_binary(0, f.read())
124124

0 commit comments

Comments
 (0)