Fix #12: Timing monitors are now correctly displayed in flags command

This commit is contained in:
Mario Hüttel 2020-08-21 00:20:16 +02:00
parent 0395cd19d4
commit 432d30cc34
1 changed files with 2 additions and 2 deletions

View File

@ -416,9 +416,9 @@ static shellmatta_retCode_t shell_cmd_read_flags(const shellmatta_handle_t handl
shellmatta_printf(handle, "\t%2lu) %-20s\t", i+1, name); shellmatta_printf(handle, "\t%2lu) %-20s\t", i+1, name);
if (timing_info.enabled) if (timing_info.enabled)
shellmatta_printf(handle, "%lu ms ago\r\n", (unsigned long int)timing_info.delta); shellmatta_printf(handle, "last tick: %lu ms\r\n", (unsigned long int)timing_info.delta);
else else
shellmatta_printf(handle, "[disabled]\r\n"); shellmatta_printf(handle, "\e[1;31mDISABLED\e[m\r\n");
} }
return SHELLMATTA_OK; return SHELLMATTA_OK;