Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions LoRaRF/SX126x.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ def setRfFrequency(self, rfFreq: int) :
def setPacketType(self, packetType: int) :
self._writeBytes(0x8A, (packetType,), 1)

def getPakcetType(self) -> int :
def getPacketType(self) -> int :
buf = self._readBytes(0x11, 2)
return buf[1]

Expand Down Expand Up @@ -1222,7 +1222,7 @@ def clearDeviceErrors(self) :
### SX126X API: WORKAROUND FUNCTIONS ###

def _fixLoRaBw500(self, bw: int) :
packetType = self.getPakcetType()
packetType = self.getPacketType()
buf = self.readRegister(self.REG_TX_MODULATION, 1)
value = buf[0] | 0x04
if packetType == self.LORA_MODEM and bw == self.BW_500000 :
Expand Down