Skip to content

Commit

Permalink
Serial tx delay update
Browse files Browse the repository at this point in the history
  • Loading branch information
sh123 committed Nov 17, 2023
1 parent cf99eb0 commit e78e0e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/kiss_processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class Processor {
None = 0x80
};

static const int CfgToSerialDelayMs = 10;
static const int CfgSerialToRigQueueSize = 4096;
static const int CfgRigToSerialQueueSize = 4096;

Expand Down
2 changes: 1 addition & 1 deletion src/kiss_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ bool Processor::processRigToSerial()
onRigPacket(&buf, rxPacketSize);

isProcessed = true;
yield();
if (!rigToSerialQueueIndex_.isEmpty()) delay(CfgToSerialDelayMs);
}
return isProcessed;
}
Expand Down

0 comments on commit e78e0e8

Please sign in to comment.