From 6d8e00b162497d76e3396bd9213078264f5123ca Mon Sep 17 00:00:00 2001 From: Marco Date: Thu, 12 May 2022 04:58:47 +0200 Subject: [PATCH] Rename function cmd_collect() to cmd_collect_char(). --- src/commands.c | 2 +- src/include/commands.h | 2 +- src/inverter.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands.c b/src/commands.c index 78448df..5448225 100644 --- a/src/commands.c +++ b/src/commands.c @@ -10,7 +10,7 @@ cmd_t command = { .index = 0 }; -void cmd_collect(char c) +void cmd_collect_char(char c) { command.buf[command.index] = c; printf("%c", command.buf[command.index]); diff --git a/src/include/commands.h b/src/include/commands.h index 086f040..441d836 100644 --- a/src/include/commands.h +++ b/src/include/commands.h @@ -3,6 +3,6 @@ typedef struct { int index; } cmd_t; -void cmd_collect(char c); +void cmd_collect_char(char c); void cmd_handle(cmd_t *command); void cmd_handle_set(char *op1, char *op2); diff --git a/src/inverter.c b/src/inverter.c index 849fbf9..0be082c 100644 --- a/src/inverter.c +++ b/src/inverter.c @@ -38,5 +38,5 @@ ISR(USART1_RX_vect) char u; u = UDR1; - cmd_collect(u); + cmd_collect_char(u); }