hocmon: fix VDD2/VDDQ reversal

This commit is contained in:
souldbminersmwc committed 2026-04-02 22:09:11 -04:00
1 parent 3411959537
commit cf891190cd
2 files changed
+8 -7

No files matched your search

@@ -997,9 +997,10 @@ public:
/* ── RAM voltage ───────────────────────────── */
if (settings.realVolts && (settings.showVDD2 || settings.showVDDQ)) {
/* realRAM_mV packs VDD2 | VDDQ in 10-µV units *
* → split, convert to mV */
const float mv_vdd2 = (realRAM_mV / 10000) / 10.0f; // VDD2
const uint32_t mv_vddq = (realRAM_mV % 100000) / 10; // VDDQ
* → split, convert to mV
*/
const float mv_vdd2 = (realRAM_mV % 100000) / 10.0f; // VDD2
const uint32_t mv_vddq = (realRAM_mV / 10000) / 10; // VDDQ
// Build voltage string based on settings
RAM_volt_c[0] = '\0'; // Start with empty string