Browse Source

v0.4.1

master
US1GHQ 1 month ago
parent
commit
094e825bb8
  1. 6
      include/version.h
  2. 10
      src/taskTNC.cpp

6
include/version.h

@ -1,10 +1,10 @@
#ifndef BUILD_NUMBER
#define BUILD_NUMBER "57"
#define BUILD_NUMBER "106"
#endif
#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
#ifndef VERSION_SHORT
#define VERSION_SHORT "v0.4.0.57-"
#define VERSION_SHORT "v0.4.1.106-"
#endif

10
src/taskTNC.cpp

@ -38,7 +38,15 @@ void handleKISSData(char character, int bufferIndex) {
bool isPacketFrame = false;
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();
buffer->concat(TNC2DataFrame);
if (xQueueSend(tncToSendQueue, &buffer, (1000 / portTICK_PERIOD_MS)) != pdPASS) {

Loading…
Cancel
Save