新增获取设备类型协议

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

@ -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;
}