SaveDev 不设置最小值

This commit is contained in:
WangQiang 2016-04-18 03:16:11 +00:00
parent 508559aa40
commit 6ab844b339
1 changed files with 1 additions and 3 deletions

View File

@ -170,15 +170,13 @@ void DevicesManagement::SaveDev()
MemoryStream ms(buf, ArrayLength(buf));
byte num = 0;
if (DevArr.Length() == 0)
num = 1;
for (int i = 0; i < DevArr.Length(); i++)
{
auto dv = DevArr[i];
if (dv == nullptr) continue;
num++;
}
// 设备个数
//int count = num;
debug_printf("\tCount %d\r\n", num);