kopia lustrzana https://github.com/mobilinkd/NucleoTNC
Remove extraneous logging.
rodzic
5b2b150b0d
commit
82aa99dd4f
|
@ -72,7 +72,7 @@ private:
|
|||
checksum <<= 16; // Shift
|
||||
asm volatile("rbit %0, %0" : "+r" (checksum)); // Reverse
|
||||
uint16_t result = checksum & 0xFFFF;
|
||||
DEBUG("CRC = %hx", result);
|
||||
// DEBUG("CRC = %hx", result);
|
||||
return result;
|
||||
}
|
||||
#else
|
||||
|
@ -133,7 +133,7 @@ public:
|
|||
fcs_ = (*it);
|
||||
++it;
|
||||
fcs_ |= (*it) << 8;
|
||||
DEBUG("FCS = %hx", fcs_);
|
||||
// DEBUG("FCS = %hx", fcs_);
|
||||
crc_ = compute_crc(data_.begin());
|
||||
complete_ = true;
|
||||
}
|
||||
|
|
|
@ -80,14 +80,14 @@ void startIOEventTask(void const*)
|
|||
|
||||
switch (frame->source()) {
|
||||
case IoFrame::RF_DATA:
|
||||
DEBUG("RF frame");
|
||||
// DEBUG("RF frame");
|
||||
if (!mobilinkd::tnc::ioport->write(frame, 100)) {
|
||||
ERROR("Timed out sending frame");
|
||||
mobilinkd::tnc::hdlc::release(frame);
|
||||
}
|
||||
break;
|
||||
case IoFrame::SERIAL_DATA:
|
||||
DEBUG("Serial frame");
|
||||
// DEBUG("Serial frame");
|
||||
if ((frame->type() & 0x0F) == IoFrame::DATA) {
|
||||
if (osMessagePut(hdlcOutputQueueHandle, reinterpret_cast<uint32_t>(frame),
|
||||
osWaitForever) != osOK) {
|
||||
|
@ -99,7 +99,7 @@ void startIOEventTask(void const*)
|
|||
}
|
||||
break;
|
||||
case IoFrame::DIGI_DATA:
|
||||
DEBUG("Digi frame");
|
||||
// DEBUG("Digi frame");
|
||||
if (osMessagePut(hdlcOutputQueueHandle, reinterpret_cast<uint32_t>(frame),
|
||||
osWaitForever) != osOK) {
|
||||
mobilinkd::tnc::hdlc::release(frame);
|
||||
|
|
Ładowanie…
Reference in New Issue