kc1awv / KISSLoRaTNC

Arduino based LoRa KISS TNC
GNU General Public License v3.0
27 stars 5 forks source link

Adds Arduino Nano, Fixes Signal Detect/Transmit Power/Bandwidth #3

Closed robojay closed 2 years ago

robojay commented 2 years ago

platform.io: Adds and entry for an Arduino Nano

KISSLoraTNC.cpp: In updateModemStatus(), changed to only look at the Signal Detected bit. The RX on-going bit is active whenever the chip is in receive mode. The Signal synchronized bit was redundant.

In startRadio() added setSignalBandwidth() call. Bandwidth was never being set.

Config.h: loraBandwidth had the wrong magnitude (was MHz, now is KHz) Removed unneeded booleans that were used in updateModemStatus()

LoRa.cpp: setTxPower() was never writing the REG_PA_CONFIG register in PA BOOST mode Modified setTxPower() to accurately set power levels according to the datasheet Note: Uncertain how this affects the HamShield:LoRa.