Browse Source

Autoswitch mode on TX, need test

KISS_TNC
US1GHQ 1 month ago
parent
commit
adf79c852f
  1. 6
      include/version.h
  2. 4
      lib/KISS_TO_TNC2/KISS_TO_PKT.cpp
  3. 1
      lib/KISS_TO_TNC2/KISS_TO_PKT.h

6
include/version.h

@ -1,10 +1,10 @@
#ifndef BUILD_NUMBER
#define BUILD_NUMBER "196"
#define BUILD_NUMBER "205"
#endif
#ifndef VERSION
#define VERSION "v0.3.2.196-0b37f35 - 2021-09-12 22:09:49.680370"
#define VERSION "v0.3.2.205-0b37f35 - 2021-09-12 22:52:51.018351"
#endif
#ifndef VERSION_SHORT
#define VERSION_SHORT "v0.3.2.196-0b37f35"
#define VERSION_SHORT "v0.3.2.205-0b37f35"
#endif

4
lib/KISS_TO_TNC2/KISS_TO_PKT.cpp

@ -97,9 +97,7 @@ String decode_kiss_pkt(const String &inputKISSTNCFrame, bool &dataFrame, bool &p
if (validateKISSFrame_pkt(inputKISSTNCFrame)) {
dataFrame = inputKISSTNCFrame.charAt(1) == CMD_DATA;
// Auto switch to packet mode if find cmd data.
if (inputKISSTNCFrame.charAt(16) == U_SABM) { pktFrame = true;}
else if (inputKISSTNCFrame.charAt(16) == U_UA) { pktFrame = true;}
else if (inputKISSTNCFrame.charAt(16) == I_I) { pktFrame = true;}
if (inputKISSTNCFrame.charAt(2) == U_PKT) { pktFrame = true;}
else { pktFrame = false; }
//END
if (dataFrame && pktFrame){

1
lib/KISS_TO_TNC2/KISS_TO_PKT.h

@ -17,6 +17,7 @@
#define U_UI 0x13 //need test
#define U_XID 0xbf //need test
#define U_TEST 0xf3 //need test
#define U_PKT 0xaa
//S-Frames
#define S_RR 0x11 //need test
#define S_RNR 0x15 //need test

Loading…
Cancel
Save