aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32F4xx')
-rw-r--r--testhal/STM32/STM32F4xx/SPI-L3GD20/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/testhal/STM32/STM32F4xx/SPI-L3GD20/main.c b/testhal/STM32/STM32F4xx/SPI-L3GD20/main.c
index e93e21a32..f43ffcbe8 100644
--- a/testhal/STM32/STM32F4xx/SPI-L3GD20/main.c
+++ b/testhal/STM32/STM32F4xx/SPI-L3GD20/main.c
@@ -79,10 +79,10 @@ static L3GD20Config l3gd20cfg = {
#define CHPRINTF_USE_ANSI_CODE TRUE
#define SHELL_WA_SIZE THD_WORKING_AREA_SIZE(2048)
-static void cmd_get(BaseSequentialStream *chp, int argc, char *argv[]) {
+static void cmd_read(BaseSequentialStream *chp, int argc, char *argv[]) {
(void)argv;
if (argc != 1) {
- chprintf(chp, "Usage: get [raw|cooked]\r\n");
+ chprintf(chp, "Usage: read [raw|cooked]\r\n");
return;
}
@@ -108,7 +108,7 @@ static void cmd_get(BaseSequentialStream *chp, int argc, char *argv[]) {
}
}
else {
- chprintf(chp, "Usage: get [raw|cooked]\r\n");
+ chprintf(chp, "Usage: read [raw|cooked]\r\n");
return;
}
}
@@ -211,7 +211,7 @@ static void cmd_bias(BaseSequentialStream *chp, int argc, char *argv[]) {
}
static const ShellCommand commands[] = {
- {"get", cmd_get},
+ {"read", cmd_read},
{"set", cmd_set},
{"bias", cmd_bias},
{NULL, NULL}