Update OpenRazer-Win32 DLLs to fix corrupt serial and version strings, enable reading these in OpenRGB.

This commit is contained in:
Adam Honse
2020-03-03 13:22:23 -06:00
parent 148b84b7d1
commit ec73337929
3 changed files with 4 additions and 22 deletions

View File

@@ -159,12 +159,6 @@ RGBController_OpenRazer::RGBController_OpenRazer(device * razer_device, device_f
unsigned int led_count = 0;
/*-----------------------------------------------------------------*\
| Initialize buffer |
\*-----------------------------------------------------------------*/
memset(string_buf, 0xFF, sizeof(string_buf));
string_buf[1023] = '\0';
/*-----------------------------------------------------------------*\
| Start device at -1. This indicates the device was not detected |
\*-----------------------------------------------------------------*/
@@ -188,29 +182,17 @@ RGBController_OpenRazer::RGBController_OpenRazer(device * razer_device, device_f
\*-----------------------------------------------------------------*/
location = "";
/*-----------------------------------------------------------------*\
| Initialize buffer |
\*-----------------------------------------------------------------*/
//memset(string_buf, 0xFF, sizeof(string_buf));
//string_buf[1023] = '\0';
/*-----------------------------------------------------------------*\
| Get the serial number from the dev path |
\*-----------------------------------------------------------------*/
//razer_functions->device_serial->show(razer_device, NULL, string_buf);
//serial = string_buf;
/*-----------------------------------------------------------------*\
| Initialize buffer |
\*-----------------------------------------------------------------*/
//memset(string_buf, 0xFF, sizeof(string_buf));
//string_buf[1023] = '\0';
razer_functions->device_serial->show(razer_device, NULL, string_buf);
serial = string_buf;
/*-----------------------------------------------------------------*\
| Get the firmware version from the dev path |
\*-----------------------------------------------------------------*/
//razer_functions->firmware_version->show(razer_device, NULL, string_buf);
//version = string_buf;
razer_functions->firmware_version->show(razer_device, NULL, string_buf);
version = string_buf;
/*-----------------------------------------------------------------*\
| Loop through all known devices to look for a name match |

View File

Binary file not shown.

View File

Binary file not shown.