Rename function cmd_collect() to cmd_collect_char().
This commit is contained in:
parent
43c3848d2a
commit
6d8e00b162
@ -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]);
|
||||||
|
@ -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);
|
||||||
|
@ -38,5 +38,5 @@ ISR(USART1_RX_vect)
|
|||||||
char u;
|
char u;
|
||||||
u = UDR1;
|
u = UDR1;
|
||||||
|
|
||||||
cmd_collect(u);
|
cmd_collect_char(u);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user