hdd_menu.cpp: improve test.

This is valid for all mmcblk devices
This commit is contained in:
Markus Volk
2020-02-16 17:02:56 +01:00
committed by Markus Volk
parent 6fb4a79c87
commit a421be6b27

View File

@@ -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;
}