Skip to content

Commit

Permalink
lora-sx126x: Remove separate _buf object.
Browse files Browse the repository at this point in the history
Signed-off-by: Max Holliday <[email protected]>
  • Loading branch information
maholli committed Jul 12, 2024
1 parent 619fa30 commit 71faa7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions micropython/lora/lora-sx126x/lora/sx126x.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ def __init__(
dio3_tcxo_start_time_us if dio3_tcxo_millivolts else 0
)

self._buf = bytearray(9) # shared buffer for commands, access through _buf_view
self._buf_view = memoryview(self._buf)
self._buf_view = memoryview(bytearray(9)) # shared buffer for commands

# These settings are kept in the object (as can't read them back from the modem)
self._output_power = 14
Expand Down

0 comments on commit 71faa7b

Please sign in to comment.