Skip to content

Commit b5eb228

Browse files
committed
PR fix
1 parent cabd83a commit b5eb228

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

terminal.c

+6-3
Original file line numberDiff line numberDiff line change
@@ -1038,11 +1038,11 @@ void terminal_process_string(char *str) {
10381038
} else if (strcmp(argv[0], "crc") == 0) {
10391039
unsigned mc_crc0 = mc_interface_get_configuration()->crc;
10401040
unsigned mc_crc1 = mc_interface_calc_crc(NULL, false);
1041-
commands_printf(" MC CFG crc: 0x%04X (stored) 0x%04X (recalc)", mc_crc0, mc_crc1);
1042-
commands_printf(" Discrepancy is expected due to run-time recalculation of config params.\n");
10431041
unsigned app_crc0 = app_get_configuration()->crc;
10441042
unsigned app_crc1 = app_calc_crc(NULL);
1045-
commands_printf("APP CFG crc: 0x%04X (stored) 0x%04X (recalc)\n", app_crc0, app_crc1);
1043+
commands_printf("MC CFG crc: 0x%04X (stored) 0x%04X (recalc)", mc_crc0, mc_crc1);
1044+
commands_printf("APP CFG crc: 0x%04X (stored) 0x%04X (recalc)", app_crc0, app_crc1);
1045+
commands_printf("Discrepancy is expected due to run-time recalculation of config params.\n");
10461046
}
10471047

10481048
// The help command
@@ -1081,6 +1081,9 @@ void terminal_process_string(char *str) {
10811081
commands_printf("tacho");
10821082
commands_printf(" Prints tachometer value");
10831083

1084+
commands_printf("dist");
1085+
commands_printf(" Prints odometer value");
1086+
10841087
commands_printf("tim");
10851088
commands_printf(" Prints tim1 and tim8 settings");
10861089

0 commit comments

Comments
 (0)