Autoswitch mode on TX, need test

KISS_TNC
US1GHQ 2021-09-12 23:10:50 +03:00
parent a5db0dd2a8
commit adf79c852f
3 changed files with 5 additions and 6 deletions

View File

@ -1,10 +1,10 @@
#ifndef BUILD_NUMBER #ifndef BUILD_NUMBER
#define BUILD_NUMBER "196" #define BUILD_NUMBER "205"
#endif #endif
#ifndef VERSION #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 #endif
#ifndef VERSION_SHORT #ifndef VERSION_SHORT
#define VERSION_SHORT "v0.3.2.196-0b37f35" #define VERSION_SHORT "v0.3.2.205-0b37f35"
#endif #endif

View File

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

View File

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