b tcp cmd
fix error only showing when 1 param is provided
This commit is contained in:
@@ -233,13 +233,13 @@ static void tcp_cmd_clear(struct tcp_pcb* pcb, int argc, char** argv) {
|
|||||||
lcd_clear_images();
|
lcd_clear_images();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
LOG_WARN(TAG, "Bad usage of clear");
|
LOG_WARN(TAG, "Bad usage of clear");
|
||||||
tcp_cmd_write(pcb, "Usage: clear\n");
|
tcp_cmd_write(pcb, "Usage: clear\n");
|
||||||
tcp_cmd_write(pcb, "Usage: clear text\n");
|
tcp_cmd_write(pcb, "Usage: clear text\n");
|
||||||
tcp_cmd_write(pcb, "Usage: clear images\n");
|
tcp_cmd_write(pcb, "Usage: clear images\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This function handles the text command
|
* @brief This function handles the text command
|
||||||
|
|||||||
Reference in New Issue
Block a user