Skip to content

Commit

Permalink
fixed device renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Reksotiv committed Nov 4, 2020
1 parent 0d2dd5b commit bed69bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hiddevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ void HidDevice::processData()
else if (current_work_ == REPORT_ID_CONFIG_OUT)
{
WriteConfigToDevice(buffer);
HidDevicesAdrList.clear(); // очистка спика устройств после записи конфига
str_list.clear(); // чтобы небыло бага в имени при выборе устройства
no_device_sent = false; // говнокод
hid_free_enumeration(hid_dev_info);
}
// else if (current_work_ == REPORT_ID_FIRMWARE)
// {
Expand Down

0 comments on commit bed69bf

Please sign in to comment.