hdd_menu.cpp: improve test.

This is valid for all mmcblk devices


Origin commit data
------------------
Branch: ni/coolstream
Commit: 9969437e35
Author: Markus Volk <f_l_k@t-online.de>
Date: 2020-02-16 (Sun, 16 Feb 2020)



------------------
This commit was generated by Migit
This commit is contained in:
Markus Volk
2020-02-16 17:02:56 +01:00
committed by vanhofen
parent 7a39761604
commit b6ac604c7a

View File

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