From b6ac604c7a1d500dd9de4759474fa268b989ff2a 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 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/9969437e35ad2b4953c0b4a7db2c42434afe40b0 Author: Markus Volk Date: 2020-02-16 (Sun, 16 Feb 2020) ------------------ This commit was generated by Migit --- 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 0e2f2ea08..12a4ae7a3 100644 --- a/src/gui/hdd_menu.cpp +++ b/src/gui/hdd_menu.cpp @@ -231,7 +231,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; }