diff --git a/virt_ds4.c b/virt_ds4.c index 3dda39d..d9f58a2 100644 --- a/virt_ds4.c +++ b/virt_ds4.c @@ -854,12 +854,6 @@ void virt_dualshock_compose(virt_dualshock_t *const gamepad, gamepad_status_t *c out_shifted_buf[48] = 0x80; // IDK... it seems constant... out_shifted_buf[35] = 0x80; // IDK... it seems constant... out_shifted_buf[44] = 0x80; // IDK... it seems constant... - - if (gamepad->bluetooth) { - uint32_t crc = crc32_le(0xFFFFFFFFU, (const uint8_t*)&PS_FEATURE_CRC32_SEED, sizeof(PS_FEATURE_CRC32_SEED)); - crc = ~crc32_le(crc, (const Bytef *)&out_shifted_buf[0], DS4_INPUT_REPORT_BT_SIZE - 4); - memcpy(&out_shifted_buf[DS4_INPUT_REPORT_BT_SIZE - sizeof(crc)], &crc, sizeof(crc)); - } } int virt_dualshock_send(virt_dualshock_t *const gamepad, uint8_t *const out_buf) { diff --git a/virt_ds5.c b/virt_ds5.c index b135fc8..15c994b 100644 --- a/virt_ds5.c +++ b/virt_ds5.c @@ -1328,12 +1328,6 @@ void virt_dualsense_compose(virt_dualsense_t *const gamepad, gamepad_status_t *c out_shifted_buf[38] = 0x00; //x_lo out_shifted_buf[39] = 0x00; //x_hi:4 y_lo:4 out_shifted_buf[40] = 0x00; //y_hi - - if (gamepad->bluetooth) { - uint32_t crc = crc32_le(0xFFFFFFFFU, (const uint8_t*)&PS_FEATURE_CRC32_SEED, sizeof(PS_FEATURE_CRC32_SEED)); - crc = ~crc32_le(crc, (const Bytef *)&out_shifted_buf[0], DS_INPUT_REPORT_BT_SIZE - 4); - memcpy(&out_shifted_buf[DS_INPUT_REPORT_BT_SIZE - sizeof(crc)], &crc, sizeof(crc)); - } } int virt_dualsense_send(virt_dualsense_t *const gamepad, uint8_t *const out_shifted_buf) {