hid: Correct bitwise AND for pro controllers in hidInitializeVibrationDevices()

LAYOUT_PROCONTROLLER is a value of zero, so the bitwise AND condition
here would always be false (TYPE_PROCONTROLLER, on the other hand is a
value of 1)
This commit is contained in:
Lioncash 2018-08-07 10:50:22 -04:00 committed by fincs
parent f3b530cea3
commit 12a473ecbe

View File

@ -932,7 +932,7 @@ Result hidInitializeVibrationDevices(u32 *VibrationDeviceHandles, size_t total_h
if (tmp_id == CONTROLLER_HANDHELD)
tmp_id = 0x20;
if (tmp_type & LAYOUT_PROCONTROLLER) {
if (tmp_type & TYPE_PROCONTROLLER) {
tmp_type = 3;
}
else if (tmp_type & TYPE_HANDHELD) {