Skip to content

Commit f77a321

Browse files
authored
Merge pull request #100 from pidou46/patch-1
Open ulp file in binary mode instead of text mode
2 parents c7f7f42 + 82e69f1 commit f77a321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)