Some small changes to update FIFO

This commit is contained in:
Jacob 2023-08-12 19:00:57 +02:00
parent bd455c2673
commit fa9130ef0b

View file

@ -29,12 +29,16 @@ void execute_fifo_cmd(void) {
* by outputting text to the FIFO. * by outputting text to the FIFO.
*/ */
if (!strcmp(fifot, "drawmenu")) { if (!strcmp(fifot, "drawmenu")) {
drawmenu(); if (!sp.isdrawing) {
drawmenu();
}
} else if (!strcmp(fifot, "match")) { } else if (!strcmp(fifot, "match")) {
match(); match();
} else if (!strcmp(fifot, "update")) { } else if (!strcmp(fifot, "update")) {
match(); if (!sp.isdrawing) {
drawmenu(); match();
drawmenu();
}
} else if (!strcmp(fifot, "test")) { } else if (!strcmp(fifot, "test")) {
fprintf(stderr, "Test print\n"); fprintf(stderr, "Test print\n");
} else if (!strcmp(fifot, "die")) { } else if (!strcmp(fifot, "die")) {