Skip to content

Commit

Permalink
fix: U盘介质识别错误
Browse files Browse the repository at this point in the history
剔除错误识别判断

Log: U盘介质识别错误
Bug: https://pms.uniontech.com/bug-view-250575.html
  • Loading branch information
wyu71 committed May 8, 2024
1 parent 6a68a3e commit 6c87327
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deepin-devicemanager/src/GenerateDevice/HWGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ void HWGenerator::getDiskInfoFromSmartCtl()
const QList<QMap<QString, QString>> lstMap = DeviceManager::instance()->cmdInfo("smart");
QList<QMap<QString, QString> >::const_iterator it = lstMap.begin();
for (; it != lstMap.end(); ++it) {
if ((*it).size() < 5)
// 剔除未识别的磁盘
if (!(*it).contains("ln"))
continue;

// KLU的问题特殊处理
Expand Down

0 comments on commit 6c87327

Please sign in to comment.