Increase delay in serial port to avoid receiving too many small packets, leading to resource starvation. Disable VERBOSITY support. Increase firmware rev to 0.8.12.

fsk9600
Rob Riggs 2018-11-17 13:57:10 -06:00
rodzic cebbc4081a
commit 5c5ca44c85
2 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

@ -27,7 +27,7 @@ int powerOffViaUSB(void)
namespace mobilinkd { namespace tnc { namespace kiss {
const char FIRMWARE_VERSION[] = "0.8.10";
const char FIRMWARE_VERSION[] = "0.8.12";
const char HARDWARE_VERSION[] = "Mobilinkd TNC3 2.1.1";
Hardware& settings()
@ -277,6 +277,7 @@ void Hardware::handle_request(hdlc::IoFrame* frame) {
osWaitForever);
break;
#if 0
case hardware::SET_VERBOSITY:
DEBUG("SET_VERBOSITY");
log_level = *it ? Log::Level::debug : Log::Level::warn;
@ -287,7 +288,6 @@ void Hardware::handle_request(hdlc::IoFrame* frame) {
reply8(hardware::GET_VERBOSITY, log_level == Log::Level::debug);
break;
#if 0
case hardware::SET_LOWPASS_FREQ:
lowpass_freq = (*it++ << 8);
lowpass_freq = *it;
@ -474,7 +474,6 @@ void Hardware::handle_request(hdlc::IoFrame* frame) {
reply8(hardware::GET_OUTPUT_TWIST, tx_twist);
reply16(hardware::GET_INPUT_GAIN, input_gain);
reply8(hardware::GET_INPUT_TWIST, rx_twist);
reply8(hardware::GET_VERBOSITY, log_level == Log::Level::debug);
reply8(hardware::GET_TXDELAY, txdelay);
reply8(hardware::GET_PERSIST, ppersist);
reply8(hardware::GET_TIMESLOT, slot);

Wyświetl plik

@ -98,7 +98,7 @@ extern "C" void startSerialTask(void const* arg)
{
hdlc::release(frame);
}
osDelay(10);
osDelay(50);
frame = hdlc::acquire_wait();
state = WAIT_FBEGIN;
break;