v0.4.1
parent
e135238393
commit
094e825bb8
|
@ -1,10 +1,10 @@
|
||||||
|
|
||||||
#ifndef BUILD_NUMBER
|
#ifndef BUILD_NUMBER
|
||||||
#define BUILD_NUMBER "57"
|
#define BUILD_NUMBER "106"
|
||||||
#endif
|
#endif
|
||||||
#ifndef VERSION
|
#ifndef VERSION
|
||||||
#define VERSION "v0.4.0.57- - 2021-09-14 21:33:46.282660"
|
#define VERSION "v0.4.1.106- - 2021-09-14 22:43:25.586224"
|
||||||
#endif
|
#endif
|
||||||
#ifndef VERSION_SHORT
|
#ifndef VERSION_SHORT
|
||||||
#define VERSION_SHORT "v0.4.0.57-"
|
#define VERSION_SHORT "v0.4.1.106-"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -38,7 +38,15 @@ void handleKISSData(char character, int bufferIndex) {
|
||||||
bool isPacketFrame = false;
|
bool isPacketFrame = false;
|
||||||
const String &TNC2DataFrame = decode_kiss(*inTNCData, isDataFrame, isPacketFrame);
|
const String &TNC2DataFrame = decode_kiss(*inTNCData, isDataFrame, isPacketFrame);
|
||||||
|
|
||||||
if (isDataFrame) {
|
if (isDataFrame && isPacketFrame) {
|
||||||
|
auto *buffer = new String();
|
||||||
|
buffer->concat(TNC2DataFrame);
|
||||||
|
if (xQueueSend(tncToSendQueue, &buffer, (1000 / portTICK_PERIOD_MS)) != pdPASS) {
|
||||||
|
delete buffer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (isDataFrame && !isPacketFrame)
|
||||||
|
{
|
||||||
auto *buffer = new String();
|
auto *buffer = new String();
|
||||||
buffer->concat(TNC2DataFrame);
|
buffer->concat(TNC2DataFrame);
|
||||||
if (xQueueSend(tncToSendQueue, &buffer, (1000 / portTICK_PERIOD_MS)) != pdPASS) {
|
if (xQueueSend(tncToSendQueue, &buffer, (1000 / portTICK_PERIOD_MS)) != pdPASS) {
|
||||||
|
|
Loading…
Reference in New Issue