From 82e69f13603ea8d626018806db82eaa430804bd2 Mon Sep 17 00:00:00 2001 From: pidou46 Date: Sat, 14 Dec 2024 17:26:07 +0100 Subject: [PATCH] Open ulp file in binary mode instead of text mode Avoid rising "unicode exception" when running from mp1.24 --- docs/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index b50e01d..77906dc 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -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())