Skip to content

Commit

Permalink
Merge pull request #100 from pidou46/patch-1
Browse files Browse the repository at this point in the history
Open ulp file in binary mode instead of text mode
  • Loading branch information
wnienhaus authored Dec 15, 2024
2 parents c7f7f42 + 82e69f1 commit f77a321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ That file can then be loaded directly without assembling the source again.
from esp32 import ULP
ulp = ULP()
with open('test.ulp', 'r') as f:
with open('test.ulp', 'rb') as f:
# load the binary into RTC memory
ulp.load_binary(0, f.read())
Expand Down

0 comments on commit f77a321

Please sign in to comment.