From 604341e5ef254ef6d4164423a342efef897a2172 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期五, 22 一月 2021 17:51:48 +0800 Subject: [PATCH] 2021-1-22-1 --- HDL_ON/Common/ApiUtlis.cs | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/HDL_ON/Common/ApiUtlis.cs b/HDL_ON/Common/ApiUtlis.cs index ca5bc48..522c5d1 100644 --- a/HDL_ON/Common/ApiUtlis.cs +++ b/HDL_ON/Common/ApiUtlis.cs @@ -161,10 +161,11 @@ } if (FunctionList.List.GetDeviceFunctionList().Count > 0) { + for (int i = 0; i < FunctionList.List.GetDeviceFunctionList().Count;) { var localFunction = FunctionList.List.GetDeviceFunctionList()[i]; - if (localFunction.Spk_Prefix == FunctionCategory.Music) + if (localFunction.Spk_Prefix == FunctionCategory.Music|| string.IsNullOrEmpty(localFunction.Spk_Prefix)) { i++; continue; @@ -191,6 +192,8 @@ deviceList.list.Remove(newFunction);//鎿嶄綔瀹岀殑鏁版嵁娓呯悊鎺夛紝鍓╀笅鐨勫氨鏄柊澧炵殑鍔熻兘 } } + + } //澶勭悊鍓╀笅鐨勬柊澧炲姛鑳� foreach (var newFunction in deviceList.list) -- Gitblit v1.8.0