Skip to content

Commit e78e0e8

Browse files
committed
Serial tx delay update
1 parent cf99eb0 commit e78e0e8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/kiss_processor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class Processor {
5050
None = 0x80
5151
};
5252

53+
static const int CfgToSerialDelayMs = 10;
5354
static const int CfgSerialToRigQueueSize = 4096;
5455
static const int CfgRigToSerialQueueSize = 4096;
5556

src/kiss_processor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ bool Processor::processRigToSerial()
134134
onRigPacket(&buf, rxPacketSize);
135135

136136
isProcessed = true;
137-
yield();
137+
if (!rigToSerialQueueIndex_.isEmpty()) delay(CfgToSerialDelayMs);
138138
}
139139
return isProcessed;
140140
}

0 commit comments

Comments
 (0)