hocmon: fix VDD2/VDDQ reversal
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1190,10 +1190,10 @@ public:
|
||||
}
|
||||
|
||||
if (settings.realVolts) {
|
||||
const float mv_vdd2_f = realRAM_mV / 100000.0f;
|
||||
const uint32_t mv_vdd2_i = realRAM_mV / 100000;
|
||||
const uint32_t mv_vddq = (realRAM_mV % 100000) / 10;
|
||||
|
||||
const float mv_vdd2_f = (realRAM_mV % 100000) / 10.0f; // VDD2
|
||||
const uint32_t mv_vddq = (realRAM_mV / 10000) / 10; // VDDQ
|
||||
const uint32_t mv_vdd2_i = (realRAM_mV % 100000) / 10;
|
||||
|
||||
if (isMariko) {
|
||||
if (settings.showVDDQ && settings.showVDD2) {
|
||||
if (settings.decimalVDD2)
|
||||
|
||||
Reference in New Issue
Block a user