新增获取设备类型协议

This commit is contained in:
modehua 2023-09-21 23:23:05 -07:00
parent 0b594ec4f4
commit 0fcc2d8a5d
3 changed files with 12 additions and 7 deletions

View File

@ -485,7 +485,7 @@ void MultiFrameCapture::snaprun()
// if (func_sig == -1 ) //当前帧取图超时,在取一次!!! 一直超时 不就卡死了??? 这个地方还是需要加个时间限制几秒内一帧未取出就退了,返回异常状态吧?
// {
// i--;
// time_out +=200;
// time_out +=200;
// time_out_cnt ++;
// if (time_out_cnt >=5)
// {

View File

@ -163,7 +163,8 @@ enum class USBCommand : unsigned int
GETMOTORPARAM = 0x202,
GETMOTORPARMLEN=0x203,
SETMOTORPARAM = 0x204,
SETMOTORPARAMLEN =0x205
SETMOTORPARAMLEN = 0x205,
DEVICES_7010 = 0x7010
};
enum class HG_ScannerStatus

View File

@ -842,6 +842,10 @@ int main(int argc, char *argv[])
}
}
break;
case USBCommand::DEVICES_7010:
usbcb.Data = 1;
m_scanner->write_bulk(&usbcb, sizeof(usbcb));
break;
default:
break;
}