// Calculate wait time in OS ticks
static const portTickType freq_ticks = 100 /* ms */ / portTICK_RATE_MS;
portTickType last_wake_time = xTaskGetTickCount();
while (cmd_io->getc(cmd_io) < 0) {
// Calculate wait time in OS ticks
static const portTickType freq_ticks = 100 /* ms */ / portTICK_RATE_MS;
portTickType last_wake_time = xTaskGetTickCount();
while (cmd_io->getc(cmd_io) < 0) {