From a421be6b27e20d477e8e5a55f847d803c2cdb05e Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Sun, 16 Feb 2020 17:02:56 +0100 Subject: [PATCH] hdd_menu.cpp: improve test. This is valid for all mmcblk devices --- src/gui/hdd_menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/hdd_menu.cpp b/src/gui/hdd_menu.cpp index c4846a1dc..0df4f86e3 100644 --- a/src/gui/hdd_menu.cpp +++ b/src/gui/hdd_menu.cpp @@ -230,7 +230,7 @@ void CHDDMenuHandler::getBlkIds() std::string CHDDMenuHandler::getDefaultPart(std::string dev) { std::string part = "1"; - if (dev == "mmcblk0") + if (strncmp(dev.c_str(), "mmcblk", 6) == 0) part = "p1"; return part; }