From bd5159da207eef97f32c5999643ccfabcd6b3d05 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 21 Sep 2019 11:34:28 -0400 Subject: [PATCH] refactoring - better method name --- firmware/hw_layer/mmc_card.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/firmware/hw_layer/mmc_card.cpp b/firmware/hw_layer/mmc_card.cpp index cf054e78c8..9c655398a3 100644 --- a/firmware/hw_layer/mmc_card.cpp +++ b/firmware/hw_layer/mmc_card.cpp @@ -73,8 +73,6 @@ extern const USBConfig msdusbcfg; #endif /* HAL_USE_USB_MSD */ -#define PUSHPULLDELAY 500 - static THD_WORKING_AREA(mmcThreadStack,3 * UTILITY_THREAD_STACK_SIZE); // MMC monitor thread /** @@ -349,9 +347,9 @@ void appendToLog(const char *line) { } /* - * MMC card umount. + * MMC card un-mount. */ -static void MMCumount(void) { +static void mmcUnMount(void) { if (!isSdCardAlive()) { scheduleMsg(&logger, "Error: No File system is mounted. \"mountsd\" first"); return; @@ -492,7 +490,7 @@ void initMmcCard(void) { addConsoleAction("mountsd", MMCmount); addConsoleActionS("appendtolog", appendToLog); - addConsoleAction("umountsd", MMCumount); + addConsoleAction("umountsd", mmcUnMount); addConsoleActionS("ls", listDirectory); addConsoleActionS("del", removeFile); addConsoleAction("incfilename", incLogFileName);