Fix remaining warning

master
Adam Honse 3 weeks ago
parent 0eea0c9aca
commit 19f9408990

@ -723,14 +723,14 @@ bool MSIMysticLight185Controller::Update
| send old state first, then new state. | | send old state first, then new state. |
| Windows Mystic Light sends two consecutive reports. | | Windows Mystic Light sends two consecutive reports. |
\*-----------------------------------------------------*/ \*-----------------------------------------------------*/
FeaturePacket_185 new_data; FeaturePacket_185 new_data = data;
memcpy(&new_data, &data, sizeof(data)); memcpy((unsigned char*)&new_data, (unsigned char*)&data, sizeof(data));
ReadSettings(); ReadSettings();
data.save_data = save; data.save_data = save;
hid_send_feature_report(dev, (unsigned char*)&data, sizeof(data)); hid_send_feature_report(dev, (unsigned char*)&data, sizeof(data));
memcpy(&data, &new_data, sizeof(data)); memcpy((unsigned char*)&data, (unsigned char*)&new_data, sizeof(data));
data.save_data = save; data.save_data = save;
return (hid_send_feature_report(dev, (unsigned char*)&data, sizeof(data)) == sizeof(data)); return (hid_send_feature_report(dev, (unsigned char*)&data, sizeof(data)) == sizeof(data));
} }

Loading…
Cancel
Save