From 5b09d687b8ef21e4d39bf1afb74afcfdcc94d5b6 Mon Sep 17 00:00:00 2001 From: vadim Date: Sun, 4 Nov 2018 15:06:47 +0200 Subject: [PATCH] debug function for encoder CRC --- terminal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terminal.c b/terminal.c index ddec0305..ea2e7c36 100644 --- a/terminal.c +++ b/terminal.c @@ -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