debug function for encoder CRC

This commit is contained in:
vadim 2018-11-04 15:06:47 +02:00
parent 46d9361886
commit 5b09d687b8
1 changed files with 2 additions and 0 deletions

View File

@ -638,6 +638,8 @@ void terminal_process_string(char *str) {
} else {
commands_printf("This command requires one argument.\n");
}
} else if (strcmp(argv[0], "encoder") == 0) {
commands_printf("SPI val:%x, errors:%d", (unsigned int)encoder_spi_get_val(), encoder_spi_get_error_cnt());
}
// The help command