LoRa APRS header is now added to RX payload

master
marcel 2 years ago
parent ede96f02aa
commit ccb1fa96ed
  1. 3
      CHANGELOG.md
  2. 3
      LoraAprsKissTnc.py

@ -19,3 +19,6 @@ All notable changes to this project will be documented in this file.
### Deprecated
- 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:
# remove third party thing
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))
self.transmit(data)
except QueueEmpty:

Loading…
Cancel
Save