Fix empty body warning when not logging.

master
Rob Riggs 2021-06-21 20:55:50 -05:00
rodzic a8ebcb12d4
commit d4c353d460
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -528,7 +528,10 @@ void M17Encoder::encoderTask(void const*)
if (evt.status != osEventMessage) continue;
auto frame = static_cast<IoFrame*>(evt.value.p);
if (frame->size() != 48) WARN("Bad frame size %u", frame->size());
if (frame->size() != 48)
{
WARN("Bad frame size %u", frame->size());
}
for (uint8_t c : *frame) modulator.send(c); // This takes ~40ms.