Skip to content
Snippets Groups Projects
Commit 4b0196b1 authored by Carl Philipp Klemm's avatar Carl Philipp Klemm
Browse files

print fault type in state command

parent d42b4b93
No related branches found
No related tags found
No related merge requests found
...@@ -199,6 +199,9 @@ static int process_commands(char** commands, size_t command_count, struct coince ...@@ -199,6 +199,9 @@ static int process_commands(char** commands, size_t command_count, struct coince
printf("\tRamp Target: %f\n\tRamp Start Time: %lld\n\tRamp Stop Time: %lld\n", printf("\tRamp Target: %f\n\tRamp Start Time: %lld\n\tRamp Stop Time: %lld\n",
state.rampTarget, (long long)state.rampStartTime, (long long)state.rampStopTime); state.rampTarget, (long long)state.rampStartTime, (long long)state.rampStopTime);
} }
if(state.fault)
printf("\tFault: %s\n", coincellhell_string_for_fault(state.faultType));
} }
} }
else if(strcmp(commands[0], "enable") == 0) else if(strcmp(commands[0], "enable") == 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment