kopia lustrzana https://github.com/mobilinkd/tnc3-firmware
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.
rodzic
cebbc4081a
commit
5c5ca44c85
|
@ -27,7 +27,7 @@ int powerOffViaUSB(void)
|
||||||
|
|
||||||
namespace mobilinkd { namespace tnc { namespace kiss {
|
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";
|
const char HARDWARE_VERSION[] = "Mobilinkd TNC3 2.1.1";
|
||||||
|
|
||||||
Hardware& settings()
|
Hardware& settings()
|
||||||
|
@ -277,6 +277,7 @@ void Hardware::handle_request(hdlc::IoFrame* frame) {
|
||||||
osWaitForever);
|
osWaitForever);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#if 0
|
||||||
case hardware::SET_VERBOSITY:
|
case hardware::SET_VERBOSITY:
|
||||||
DEBUG("SET_VERBOSITY");
|
DEBUG("SET_VERBOSITY");
|
||||||
log_level = *it ? Log::Level::debug : Log::Level::warn;
|
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);
|
reply8(hardware::GET_VERBOSITY, log_level == Log::Level::debug);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#if 0
|
|
||||||
case hardware::SET_LOWPASS_FREQ:
|
case hardware::SET_LOWPASS_FREQ:
|
||||||
lowpass_freq = (*it++ << 8);
|
lowpass_freq = (*it++ << 8);
|
||||||
lowpass_freq = *it;
|
lowpass_freq = *it;
|
||||||
|
@ -474,7 +474,6 @@ void Hardware::handle_request(hdlc::IoFrame* frame) {
|
||||||
reply8(hardware::GET_OUTPUT_TWIST, tx_twist);
|
reply8(hardware::GET_OUTPUT_TWIST, tx_twist);
|
||||||
reply16(hardware::GET_INPUT_GAIN, input_gain);
|
reply16(hardware::GET_INPUT_GAIN, input_gain);
|
||||||
reply8(hardware::GET_INPUT_TWIST, rx_twist);
|
reply8(hardware::GET_INPUT_TWIST, rx_twist);
|
||||||
reply8(hardware::GET_VERBOSITY, log_level == Log::Level::debug);
|
|
||||||
reply8(hardware::GET_TXDELAY, txdelay);
|
reply8(hardware::GET_TXDELAY, txdelay);
|
||||||
reply8(hardware::GET_PERSIST, ppersist);
|
reply8(hardware::GET_PERSIST, ppersist);
|
||||||
reply8(hardware::GET_TIMESLOT, slot);
|
reply8(hardware::GET_TIMESLOT, slot);
|
||||||
|
|
|
@ -98,7 +98,7 @@ extern "C" void startSerialTask(void const* arg)
|
||||||
{
|
{
|
||||||
hdlc::release(frame);
|
hdlc::release(frame);
|
||||||
}
|
}
|
||||||
osDelay(10);
|
osDelay(50);
|
||||||
frame = hdlc::acquire_wait();
|
frame = hdlc::acquire_wait();
|
||||||
state = WAIT_FBEGIN;
|
state = WAIT_FBEGIN;
|
||||||
break;
|
break;
|
||||||
|
|
Ładowanie…
Reference in New Issue