V0.1
This commit is contained in:
parent
d0a368a17a
commit
4a50f75b72
@ -469,6 +469,7 @@ AES_USB::HIDDevice::HIDDevice() {
|
||||
|
||||
#elif _WIN32
|
||||
deviceHandle = INVALID_HANDLE_VALUE;
|
||||
preparsedData = 0;
|
||||
#else
|
||||
|
||||
#endif
|
||||
|
||||
@ -148,8 +148,11 @@ void Widget::LoopRunning() {
|
||||
ui->R_PID->setText(PID.c_str());
|
||||
ui->R_VID->setText(VID.c_str());
|
||||
ui->R_PIN->clear();
|
||||
const CTL::String str = (char*)key.PIN;
|
||||
ui->R_PIN->setText(str.c_str());
|
||||
char PIN[21] = {0};
|
||||
std::memcpy(PIN, key.PIN, sizeof key.PIN);
|
||||
PIN[20] = '\0';
|
||||
const QString str = QString::fromLocal8Bit(PIN);
|
||||
ui->R_PIN->setText(str);
|
||||
});
|
||||
CTL::Thread::SleepMS(1000);
|
||||
const int r = writeInit();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user