LoRa APRS header is now added to RX payload
This commit is contained in:
@@ -19,3 +19,6 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
- Configuration via config.py
|
- Configuration via config.py
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- LoRa APRS header (<\xff\x01) was not added to the payload, due to an indentation fault. Long live Python!
|
||||||
|
@@ -113,7 +113,8 @@ class LoraAprsKissTnc(LoRa):
|
|||||||
if self.aprs_data_type(data) == self.DATA_TYPE_THIRD_PARTY:
|
if self.aprs_data_type(data) == self.DATA_TYPE_THIRD_PARTY:
|
||||||
# remove third party thing
|
# remove third party thing
|
||||||
data = data[data.find(self.DATA_TYPE_THIRD_PARTY) + 1:]
|
data = data[data.find(self.DATA_TYPE_THIRD_PARTY) + 1:]
|
||||||
data = self.LORA_APRS_HEADER + data
|
# Add LoRa-APRS header (original, this was indented one position further, only executed when above if-statement was true. Think it should be executed at all times.
|
||||||
|
data = self.LORA_APRS_HEADER + data
|
||||||
print("LoRa TX: " + repr(data))
|
print("LoRa TX: " + repr(data))
|
||||||
self.transmit(data)
|
self.transmit(data)
|
||||||
except QueueEmpty:
|
except QueueEmpty:
|
||||||
|
Reference in New Issue
Block a user