Skip to content

Commit 4c8163a

Browse files
committed
lora-sx126x: Remove separate _buf object.
Signed-off-by: Max Holliday <maholli@stanford.edu>
1 parent 619fa30 commit 4c8163a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

micropython/lora/lora-sx126x/lora/sx126x.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ def __init__(
152152
dio3_tcxo_start_time_us if dio3_tcxo_millivolts else 0
153153
)
154154

155-
self._buf = bytearray(9) # shared buffer for commands, access through _buf_view
156-
self._buf_view = memoryview(self._buf)
155+
self._buf_view = memoryview(bytearray(9)) # shared buffer for commands
157156

158157
# These settings are kept in the object (as can't read them back from the modem)
159158
self._output_power = 14
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
metadata(version="0.1.2")
1+
metadata(version="0.1.3")
22
require("lora")
33
package("lora")

0 commit comments

Comments
 (0)