mirror of
https://github.com/dualshock-tools/dualshock-tools.github.io.git
synced 2026-03-01 11:19:54 +03:00
ds4_calibrate_sticks_end bug? #39
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @raingart on GitHub (Apr 25, 2025).
Hi,
I'm currently working on refactoring the JavaScript ver of the DS4/DS5 calibration tool and trying to ensure the low-level hardware communication logic is accurate.
I've encountered a potentially confusing part in the ds4_calibrate_sticks_end function in the original JavaScript code:
he confusing part is the if condition after sending the Write command ([2,1,1]). It appears to check the results (data, data2) from the previous Sample command ([3,1,1]) against the expected Sample success codes (
0x91010101,0x920101FF). This seems counter-intuitive, as it doesn't seem to validate the result of the Write command itself.For comparison, the
ds5_calibrate_sticks_endfunction does read a new report (0x83) after its Write command ([2,1,1]) and checks for a specific "Write success" code (0x83010102).Could you please clarify the intended logic here for the DS4?
0x91,0x92) should be read and validated after the DS4 Write command?0x91and0x92reports? (Similar to how DS5 expects0x83010102in its0x83report).Any insight you could provide would be extremely helpful for ensuring the refactored version behaves correctly.
Thank you for your time and for creating this useful tool!
@dualshock-tools commented on GitHub (May 2, 2025):
Hi, you found a bug, thank you! The lines:
are missing from that function and should be there. Will fix that soon!
@dualshock-tools commented on GitHub (May 2, 2025):
Should be fixed!