Skip to content

Commit

Permalink
added %s
Browse files Browse the repository at this point in the history
  • Loading branch information
Selective031 committed Jul 6, 2021
1 parent 652d6c1 commit 930f242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RazorBoard/Core/Src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ void parseCommand_Console(void) {
if (strncmp(Command, "SET PERIMETER CUT RATIO", 23) == 0) {
int ratio;
char cmd1[3], cmd2[9], cmd3[3], cmd4[5];
sscanf(Command, "%s %s %s %d", cmd1, cmd2, cmd3, cmd4, &ratio);
sscanf(Command, "%s %s %s %s %d", cmd1, cmd2, cmd3, cmd4, &ratio);
settings.cut_perimeter_ratio = ratio;
}
if (strncmp(Command, "SET ADC LEVEL", 13) == 0) {
Expand Down

0 comments on commit 930f242

Please sign in to comment.