|
|
|
@ -104,8 +104,7 @@ void handleKISSData(char character, int bufferIndex) { |
|
|
|
|
bool isPacketFrame = false; |
|
|
|
|
if (isPacketFrame) { |
|
|
|
|
const String &kissEncoded_pkt = encode_kiss_pkt(*loraReceivedFrameString, isPacketFrame); |
|
|
|
|
//Serial.print(kissEncoded_pkt);
|
|
|
|
|
Serial.print("PACKET MODE"); |
|
|
|
|
Serial.print(kissEncoded_pkt); |
|
|
|
|
#ifdef ENABLE_BLUETOOTH |
|
|
|
|
if (SerialBT.hasClient()){ |
|
|
|
|
SerialBT.print(kissEncoded_pkt); |
|
|
|
@ -124,7 +123,6 @@ void handleKISSData(char character, int bufferIndex) { |
|
|
|
|
{ |
|
|
|
|
const String &kissEncoded = encode_kiss(*loraReceivedFrameString); |
|
|
|
|
Serial.print(kissEncoded); |
|
|
|
|
//Serial.print("OPEN MODE");
|
|
|
|
|
#ifdef ENABLE_BLUETOOTH |
|
|
|
|
if (SerialBT.hasClient()){ |
|
|
|
|
SerialBT.print(kissEncoded); |
|
|
|
|