Fix empty body warning when not logging.

m17
Rob Riggs 2021-06-21 20:47:52 -05:00
rodzic 0a6d34bec4
commit 013b25bf84
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -531,7 +531,10 @@ void M17Encoder::encoderTask(void const*)
HAL_IWDG_Refresh(&hiwdg);
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.