SaveDev 不设置最小值
This commit is contained in:
parent
508559aa40
commit
6ab844b339
|
@ -170,15 +170,13 @@ void DevicesManagement::SaveDev()
|
||||||
|
|
||||||
MemoryStream ms(buf, ArrayLength(buf));
|
MemoryStream ms(buf, ArrayLength(buf));
|
||||||
byte num = 0;
|
byte num = 0;
|
||||||
if (DevArr.Length() == 0)
|
|
||||||
num = 1;
|
|
||||||
|
|
||||||
for (int i = 0; i < DevArr.Length(); i++)
|
for (int i = 0; i < DevArr.Length(); i++)
|
||||||
{
|
{
|
||||||
auto dv = DevArr[i];
|
auto dv = DevArr[i];
|
||||||
if (dv == nullptr) continue;
|
if (dv == nullptr) continue;
|
||||||
num++;
|
num++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 设备个数
|
// 设备个数
|
||||||
//int count = num;
|
//int count = num;
|
||||||
debug_printf("\tCount %d\r\n", num);
|
debug_printf("\tCount %d\r\n", num);
|
||||||
|
|
Loading…
Reference in New Issue