Skip to content

Commit 71faa7b

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
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

0 commit comments

Comments
 (0)