mirror of
https://github.com/dualshock-tools/dualshock-tools.github.io.git
synced 2026-03-01 11:19:54 +03:00
Fix: Reverse PCBA ID
This commit is contained in:
7
core.js
7
core.js
@@ -588,6 +588,11 @@ function ds5_color(x) {
|
||||
return colorName;
|
||||
}
|
||||
|
||||
// This function should be used only for ASCII strings (not UTF)
|
||||
function reverse_str(s) {
|
||||
return s.split('').reverse().join('');
|
||||
}
|
||||
|
||||
|
||||
async function ds5_info(is_edge) {
|
||||
try {
|
||||
@@ -623,7 +628,7 @@ async function ds5_info(is_edge) {
|
||||
serial_number = await ds5_system_info(1, 19, 17);
|
||||
append_info(l("Serial Number"), serial_number, "hw");
|
||||
append_info_extra(l("MCU Unique ID"), await ds5_system_info(1, 9, 9, false), "hw");
|
||||
append_info_extra(l("PCBA ID"), await ds5_system_info(1, 17, 14), "hw");
|
||||
append_info_extra(l("PCBA ID"), reverse_str(await ds5_system_info(1, 17, 14)), "hw");
|
||||
append_info_extra(l("Battery Barcode"), await ds5_system_info(1, 24, 23), "hw");
|
||||
append_info_extra(l("VCM Left Barcode"), await ds5_system_info(1, 26, 16), "hw");
|
||||
append_info_extra(l("VCM Right Barcode"), await ds5_system_info(1, 28, 16), "hw");
|
||||
|
||||
@@ -943,7 +943,7 @@ dl.row dd { font-family: monospace; }
|
||||
<div class="container">
|
||||
<footer>
|
||||
<div class="d-flex flex-column flex-sm-row justify-content-between py-4 my-4 border-top" id="footbody">
|
||||
<p><a target="_blank" href="https://github.com/dualshock-tools/dualshock-tools.github.io/commits/main/"><span class="ds-i18n">Version</span> 2.9</a> (2025-07-27) - <a href="#" class="ds-i18n" onclick="show_donate_modal();">Support this project</a> <span id="authorMsg"></span></p>
|
||||
<p><a target="_blank" href="https://github.com/dualshock-tools/dualshock-tools.github.io/commits/main/"><span class="ds-i18n">Version</span> 2.10</a> (2025-08-02) - <a href="#" class="ds-i18n" onclick="show_donate_modal();">Support this project</a> <span id="authorMsg"></span></p>
|
||||
|
||||
<ul class="list-unstyled d-flex">
|
||||
<li class="ms-3"><a class="link-body-emphasis" href="mailto:ds4@the.al" target="_blank"><svg class="bi" width="24" height="24"><use xlink:href="#mail"/></svg></a></li>
|
||||
|
||||
Reference in New Issue
Block a user