Skip to content

Commit

Permalink
Open ulp file in binary mode instead of text mode
Browse files Browse the repository at this point in the history
Avoid rising "unicode exception" when running from mp1.24
  • Loading branch information
pidou46 authored Dec 14, 2024
1 parent 37e68c5 commit 82e69f1
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 82e69f1

Please sign in to comment.