diff --git a/RGBController/RGBController_OpenRazerWindows.cpp b/RGBController/RGBController_OpenRazerWindows.cpp index 6dc138d3b..b16f04765 100644 --- a/RGBController/RGBController_OpenRazerWindows.cpp +++ b/RGBController/RGBController_OpenRazerWindows.cpp @@ -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 | diff --git a/dependencies/openrazer-win32/OpenRazer.dll b/dependencies/openrazer-win32/OpenRazer.dll index e97cb0155..e1d7d3ca6 100644 Binary files a/dependencies/openrazer-win32/OpenRazer.dll and b/dependencies/openrazer-win32/OpenRazer.dll differ diff --git a/dependencies/openrazer-win32/OpenRazer64.dll b/dependencies/openrazer-win32/OpenRazer64.dll index ccd1779dd..e5ca56c98 100644 Binary files a/dependencies/openrazer-win32/OpenRazer64.dll and b/dependencies/openrazer-win32/OpenRazer64.dll differ