Fix configurator

This commit is contained in:
souldbminersmwc
2025-09-03 20:56:24 -04:00
parent 84ccfdc018
commit 06faabdddf
3 changed files with 5 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ volatile CustomizeTable C = {
* Value should be divided evenly by 12'500.
* Not enabled by default.
*/
.commonEmcMemVolt = 1212500,
.commonEmcMemVolt = 1175000,
/* Erista CPU:
* - Max Voltage in mV

View File

@@ -16,7 +16,7 @@
#pragma once
#define CUST_REV 1
#define CUST_REV 2
#include "oc_common.hpp"
#include "pcv/pcv_common.hpp"

View File

@@ -25,7 +25,7 @@ var __awaiter = this && this.__awaiter || function(e, t, i, n) {
o((n = n.apply(e, t || [])).next())
}))
};
const CUST_REV_ADV = 1;
const CUST_REV_ADV = 2;
var CustPlatform;
! function(e) {
e[e.Undefined = 0] = "Undefined", e[e.Erista = 1] = "Erista", e[e.Mariko = 2] = "Mariko", e[e.All = 3] = "All"
@@ -94,7 +94,7 @@ class AdvEntry extends CustEntry {
}
}
class GpuEntry extends CustEntry {
constructor(e, t, i = CustPlatform.Mariko, n = 4, a = ["range: 610 ≤ x ≤ 960"], r = 610, s = [610, 960], l = 5, o = !1) {
constructor(e, t, i = CustPlatform.Mariko, n = 4, a = ["range: 480 ≤ x ≤ 960 (Zero is disabled)"], r = 480, s = [0, 960], l = 5, o = !1) {
super(e, t, i, n, a, r, s, l, o), this.id = e, this.name = t, this.platform = i, this.size = n, this.desc = a, this.defval = r, this.step = l, this.zeroable = o
}
createElement() {
@@ -483,7 +483,7 @@ class Cust {
}
parse() {
let e = this.beginOffset + this.magicLen;
if (this.rev = this.mapper[4].get(e), 1 != this.rev) throw new Error(`Unsupported custRev, expected: 1, got ${this.rev}`);
if (this.rev = this.mapper[4].get(e), CUST_REV_ADV != this.rev) throw new Error(`Unsupported custRev, expected: 1, got ${this.rev}`);
e += 4, document.getElementById("cust_rev").innerHTML = `Cust v${this.rev} is loaded.`;
let t = t => {
var i;