Rename function cmd_collect() to cmd_collect_char().

This commit is contained in:
Marco 2022-05-12 04:58:47 +02:00
parent 43c3848d2a
commit 6d8e00b162
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ cmd_t command = {
.index = 0 .index = 0
}; };
void cmd_collect(char c) void cmd_collect_char(char c)
{ {
command.buf[command.index] = c; command.buf[command.index] = c;
printf("%c", command.buf[command.index]); printf("%c", command.buf[command.index]);

View File

@ -3,6 +3,6 @@ typedef struct {
int index; int index;
} cmd_t; } cmd_t;
void cmd_collect(char c); void cmd_collect_char(char c);
void cmd_handle(cmd_t *command); void cmd_handle(cmd_t *command);
void cmd_handle_set(char *op1, char *op2); void cmd_handle_set(char *op1, char *op2);

View File

@ -38,5 +38,5 @@ ISR(USART1_RX_vect)
char u; char u;
u = UDR1; u = UDR1;
cmd_collect(u); cmd_collect_char(u);
} }