Fix #69
This commit is contained in:
1 parent
9cfe812247
commit
69f7919c3c
4 files changed
+25
-10
No files matched your search
Vendored
+1
-1
@@ -1 +1 @@
|
||||
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,initial-scale=1"><title>Switch OC Suite | Overclocking suite for Horizon OS (HOS) running on Atmosphere CFW. Licensed under GPL v2.</title><meta name=description content="Overclocking suite for Horizon OS (HOS) running on Atmosphere CFW. Licensed under GPL v2."><link rel=stylesheet href=https://unpkg.com/@picocss/pico@latest/css/pico.min.css><style>nav[role=tab-control]>button{border-radius:0;border-left-width:calc(var(--border-width)/ 2);border-right-width:calc(var(--border-width)/ 2)}nav[role=tab-control]>button:first-child{border-top-left-radius:var(--border-radius);border-bottom-left-radius:var(--border-radius);border-left-width:var(--border-width)}nav[role=tab-control]>button:last-child{border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-right-width:var(--border-width)}nav[role=tab-control]>button:not(.secondary){pointer-events:none;cursor:default}div.cust-element{margin:1.5rem 0 1.5rem 0}div.cust-element>blockquote{margin-top:0}div#download_btn_grid>a{margin:.5rem 0}</style><div class=hero><nav class=container-fluid style=position:fixed;top:0;z-index:99;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)><ul><li><a href=#head class=contrast>Switch OC Suite</a></ul><ul><li><a href=#readme class=secondary>Read Me</a><li><a href=#download class=secondary>Download</a><li><a href=#config class=secondary>Config</a><li><a href=https://github.com/KazushiMe/Switch-OC-Suite class=contrast><svg aria-hidden=true focusable=false role=img xmlns=http://www.w3.org/2000/svg viewBox="0 0 496 512" height=16px><path fill=currentColor d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"></path></svg></a></ul></nav><header class=container style=padding-top:6rem><hgroup><h1>Switch OC Suite</h1><h2>Overclocking suite for Horizon OS (HOS) running on Atmosphere CFW. Licensed under GPL v2.</h2></hgroup></header></div><section aria-label="Read Me" id=readme><div class=container><article><header><hgroup><h2>Read Me</h2><h3>🚨DISCLAIMER: THIS IS PROVIDED AS IS. USE AT YOUR OWN RISK!🚨</h3></hgroup><li>Overclocking in general will shorten the lifespan of some hardware components. <strong>YOU ARE RESPONSIBLE for any problem or potential damage</strong> if unsafe frequencies are ENABLED in sys-clk-OC. Issues like asking for bypassing limit will BE IGNORED OR CLOSED WITHOUT REPLY.<li>Due to HorizonOS design, instabilities from unsafe RAM clocks may cause filesystem corruption. <strong>Always make backup before enabling DRAM OC.</strong></header><h3>Features</h3><details><summary>For Erista variant (HAC-001)</summary><ul><li>CPU Overclock (Safe: 1785 MHz)<ul><li>Unsafe<ul><li>Due to the limit of board power draw or power IC<li>Unlockable frequencies up to 2091 MHz<li>See <a href=https://github.com/KazushiMe/Switch-OC-Suite/blob/master/Source/sys-clk-OC/README.md target=_blank>README for sys-clk-OC</a></ul></ul><li>DRAM Overclock (Safe: 1862.4 MHz)</ul></details><details><summary>For Mariko variant (HAC-001-01, HDH-001, HEG-001)</summary><ul><li>CPU / GPU Overclock (Safe: 1963 / 998 MHz)<ul><li>Unsafe<ul><li>Due to the limit of board power draw or power IC<li>Unlockable frequencies up to 2397 / 1305 MHz or 2295 / 1267 MHz<li>See <a href=https://github.com/KazushiMe/Switch-OC-Suite/blob/master/Source/sys-clk-OC/README.md target=_blank>README for sys-clk-OC</a></ul></ul><li>DRAM Overclock (Safe: 1996.8 MHz)</ul></details><details><summary>Modded sys-clk and ReverseNX-RT</summary><ul><li>Auto CPU Boost<ul><li>For faster game loading<li>Enable CPU Boost (1785 MHz) when CPU Core#3 (System Core) is stressed (mainly I/O operations).<li>Effective only whenLine truncated
|
||||
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,initial-scale=1"><title>Switch OC Suite | Overclocking suite for Horizon OS (HOS) running on Atmosphere CFW. Licensed under GPL v2.</title><meta name=description content="Overclocking suite for Horizon OS (HOS) running on Atmosphere CFW. Licensed under GPL v2."><link rel=stylesheet href=https://unpkg.com/@picocss/pico@latest/css/pico.min.css><style>nav[role=tab-control]>button{border-radius:0;border-left-width:calc(var(--border-width)/ 2);border-right-width:calc(var(--border-width)/ 2)}nav[role=tab-control]>button:first-child{border-top-left-radius:var(--border-radius);border-bottom-left-radius:var(--border-radius);border-left-width:var(--border-width)}nav[role=tab-control]>button:last-child{border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-right-width:var(--border-width)}nav[role=tab-control]>button:not(.outline){pointer-events:none;cursor:default}div.cust-element{margin:1.5rem 0 1.5rem 0}div.cust-element>blockquote{margin-top:0}div#download_btn_grid>a{margin:.5rem 0}</style><div class=hero><nav class=container-fluid style=position:fixed;top:0;z-index:99;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)><ul><li><a href=#head class=contrast>Switch OC Suite</a></ul><ul><li><a href=#readme class=secondary>Read Me</a><li><a href=#download class=secondary>Download</a><li><a href=#config class=secondary>Config</a><li><a href=https://github.com/KazushiMe/Switch-OC-Suite class=contrast><svg aria-hidden=true focusable=false role=img xmlns=http://www.w3.org/2000/svg viewBox="0 0 496 512" height=16px><path fill=currentColor d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"></path></svg></a></ul></nav><header class=container style=padding-top:6rem><hgroup><h1>Switch OC Suite</h1><h2>Overclocking suite for Horizon OS (HOS) running on Atmosphere CFW. Licensed under GPL v2.</h2></hgroup></header></div><section aria-label="Read Me" id=readme><div class=container><article><header><hgroup><h2>Read Me</h2><h3>🚨DISCLAIMER: THIS IS PROVIDED AS IS. USE AT YOUR OWN RISK!🚨</h3></hgroup><li>Overclocking in general will shorten the lifespan of some hardware components. <strong>YOU ARE RESPONSIBLE for any problem or potential damage</strong> if unsafe frequencies are ENABLED in sys-clk-OC. Issues like asking for bypassing limit will BE IGNORED OR CLOSED WITHOUT REPLY.<li>Due to HorizonOS design, instabilities from unsafe RAM clocks may cause filesystem corruption. <strong>Always make backup before enabling DRAM OC.</strong></header><h3>Features</h3><details><summary>For Erista variant (HAC-001)</summary><ul><li>CPU Overclock (Safe: 1785 MHz)<ul><li>Unsafe<ul><li>Due to the limit of board power draw or power IC<li>Unlockable frequencies up to 2091 MHz<li>See <a href=https://github.com/KazushiMe/Switch-OC-Suite/blob/master/Source/sys-clk-OC/README.md target=_blank>README for sys-clk-OC</a></ul></ul><li>DRAM Overclock (Safe: 1862.4 MHz)</ul></details><details><summary>For Mariko variant (HAC-001-01, HDH-001, HEG-001)</summary><ul><li>CPU / GPU Overclock (Safe: 1963 / 998 MHz)<ul><li>Unsafe<ul><li>Due to the limit of board power draw or power IC<li>Unlockable frequencies up to 2397 / 1305 MHz or 2295 / 1267 MHz<li>See <a href=https://github.com/KazushiMe/Switch-OC-Suite/blob/master/Source/sys-clk-OC/README.md target=_blank>README for sys-clk-OC</a></ul></ul><li>DRAM Overclock (Safe: 1996.8 MHz)</ul></details><details><summary>Modded sys-clk and ReverseNX-RT</summary><ul><li>Auto CPU Boost<ul><li>For faster game loading<li>Enable CPU Boost (1785 MHz) when CPU Core#3 (System Core) is stressed (mainly I/O operations).<li>Effective only when cLine truncated
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
var __awaiter=this&&this.__awaiter||function(e,t,i,a){return new(i||(i=Promise))((function(l,r){function n(e){try{o(a.next(e))}catch(e){r(e)}}function s(e){try{o(a.throw(e))}catch(e){r(e)}}function o(e){var t;e.done?l(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(n,s)}o((a=a.apply(e,t||[])).next())}))};const CUST_REV=3;var buffer,CustPlatform;!function(e){e[e.Undefined=0]="Undefined",e[e.Erista=1]="Erista",e[e.Mariko=2]="Mariko",e[e.All=3]="All"}(CustPlatform||(CustPlatform={}));class CustEntry{constructor(e,t,i,a,l,r,n=[0,1e6],s=1,o=!0){this.id=e,this.name=t,this.platform=i,this.size=a,this.desc=l,this.defval=r,this.min=n[0],this.max=n[1],this.step=s,this.zeroable=o}validate(){let e=new ErrorToolTip(this.id);return e.clear(),Number.isNaN(this.value)||!this.value?(e.setMsg("Invalid value: Not a number"),e.show(),!1):!(!this.zeroable||0!=this.value)||(this.value<this.min||this.value>this.max?(e.setMsg(`Expected range: [${this.min}, ${this.max}], got ${this.value}.`),e.show(),!1):this.value%this.step==0||(e.setMsg(`${this.value} % ${this.step} ≠ 0`),e.show(),!1))}getInputElement(){return document.getElementById(this.id)}updateValueFromElement(){this.value=Number(this.getInputElement().value)}isAvailableFor(e){return e===CustPlatform.Undefined||this.platform===e||this.platform===CustPlatform.All}createElement(){let e=this.getInputElement();if(!e){let t=document.createElement("div");t.classList.add("grid","cust-element"),e=document.createElement("input"),e.min=String(this.zeroable?0:this.min),e.max=String(this.max),e.id=this.id,e.type="number",e.step=String(this.step);let i=document.createElement("label");i.setAttribute("for",this.id),i.innerHTML=this.name,i.appendChild(e),t.appendChild(i);let a=document.createElement("blockquote");a.innerHTML=this.desc,a.setAttribute("for",this.id),t.appendChild(a),document.getElementById("form").appendChild(t),new ErrorToolTip(this.id).addChangeListener()}e.value=String(this.value)}setElementDefaultValue(){document.getElementById(this.id).value=String(this.defval)}removeElement(){let e=this.getInputElement();e&&e.parentElement.parentElement.remove()}showElement(){let e=this.getInputElement();e&&e.parentElement.parentElement.style.removeProperty("display")}hideElement(){let e=this.getInputElement();e&&e.parentElement.parentElement.style.setProperty("display","none")}}var CustTable=[new CustEntry("mtcConf","DRAM Timing",CustPlatform.Mariko,2,"<li><b>0</b>: AUTO_ADJ_MARIKO_SAFE: Auto adjust timings for LPDDR4 ≤3733 Mbps specs, 8Gb density. (Default)</li> <li><b>1</b>: AUTO_ADJ_MARIKO_4266: Auto adjust timings for LPDDR4X 4266 Mbps specs, 8Gb density.</li> <li><b>2</b>: NO_ADJ_ALL: No timing adjustment for both Erista and Mariko. Might achieve better performance on Mariko but lower maximum frequency is expected.",0,[0,2],1),new CustEntry("marikoCpuMaxClock","Mariko CPU Max Clock in kHz",CustPlatform.Mariko,4,"<li>System default: 1785000</li> <li>2397000 might be unreachable for some SoCs.</li>",2397e3,[1785e3,3e6],1),new CustEntry("marikoCpuBoostClock","Mariko CPU Boost Clock in kHz",CustPlatform.Mariko,4,"<li>System default: 1785000</li> <li>Boost clock will be applied when applications request higher CPU frequency for quicker loading.</li> <li>This will be set regardless of whether sys-clk is enabled.</li>",1785e3,[102e4,3e6],1,!1),new CustEntry("marikoCpuMaxVolt","Mariko CPU Max Voltage in mV",CustPlatform.Mariko,4,"<li>System default: 1120</li> <li>Acceptable range: 1100 ≤ x ≤ 1300</li>",1235,[1100,1300],5),new CustEntry("marikoGpuMaxClock","Mariko GPU Max Clock in kHz",CustPlatform.Mariko,4,"<li>System default: 921600</li> <li>Tegra X1+ official maximum: 1267200</li> <li>1305600 might be unreachable for some SoCs.</li>",1305600,[768e3,1536e3],100),new CustEntry("marikoEmcMaxClock","Mariko RAM Max Clock in kHz",CustPlatform.Mariko,4,"<li>Values should be ≥ 1600000, and divided evenly by 3200.</li> <li><b>WARNING:</b> RAM overclock could be UNSTABLE if timing parameters are not suitable for your DRAM</li>",1996800,[16e5,24e5],3200),new CustEntry("marikoEmcVddqVolt","EMC Vddq (Mariko Only) Voltage in uV",CustPlatform.Mariko,4,"<li>Acceptable range: 550000 ≤ x ≤ 650000</li> <li>Value should be divided evenly by 5000</li> <li>Default: 600000</li> <li>Not enabled by default.</li> <li>This will not work without sys-clk-OC.</li>",0,[55e4,65e4],5e3),new CustEntry("eristaCpuMaxVolt","Erista CPU Max Voltage in mV",CustPlatform.Erista,4,"<li>Acceptable range: 1100 ≤ x ≤ 1300</li>",1235,[1100,1300],1),new CustEntry("eristaEmcMaxClock","Erista RAM Max Clock in kHz",CustPlatform.Erista,4,"<li>Values should be ≥ 1600000, and divided evenly by 3200.</li> <li><b>WARNING:</b> RAM overclock could be UNSTABLE if timing parameters are not suitable for your DRAM</li>",1862400,[16e5,24e5],3200),new CustEntry("commonEmcMemVolt","EMC Vddq (Erista Only) & RAM Vdd2 Voltage in uV",CustPlatform.All,4,"<liLine truncated
|
||||
var __awaiter=this&&this.__awaiter||function(e,t,i,l){return new(i||(i=Promise))((function(a,n){function r(e){try{o(l.next(e))}catch(e){n(e)}}function s(e){try{o(l.throw(e))}catch(e){n(e)}}function o(e){var t;e.done?a(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,s)}o((l=l.apply(e,t||[])).next())}))};const CUST_REV=3;var buffer,CustPlatform;!function(e){e[e.Undefined=0]="Undefined",e[e.Erista=1]="Erista",e[e.Mariko=2]="Mariko",e[e.All=3]="All"}(CustPlatform||(CustPlatform={}));class CustEntry{constructor(e,t,i,l,a,n,r=[0,1e6],s=1,o=!0){this.id=e,this.name=t,this.platform=i,this.size=l,this.desc=a,this.defval=n,this.min=r[0],this.max=r[1],this.step=s,this.zeroable=o}validate(){let e=new ErrorToolTip(this.id);return e.clear(),Number.isNaN(this.value)||void 0===this.value?(e.setMsg("Invalid value: Not a number"),e.show(),!1):!(!this.zeroable||0!=this.value)||(this.value<this.min||this.value>this.max?(e.setMsg(`Expected range: [${this.min}, ${this.max}], got ${this.value}.`),e.show(),!1):this.value%this.step==0||(e.setMsg(`${this.value} % ${this.step} ≠ 0`),e.show(),!1))}getInputElement(){return document.getElementById(this.id)}updateValueFromElement(){this.value=Number(this.getInputElement().value)}isAvailableFor(e){return e===CustPlatform.Undefined||this.platform===e||this.platform===CustPlatform.All}createElement(){let e=this.getInputElement();if(!e){let t=document.createElement("div");t.classList.add("grid","cust-element"),e=document.createElement("input"),e.min=String(this.zeroable?0:this.min),e.max=String(this.max),e.id=this.id,e.type="number",e.step=String(this.step);let i=document.createElement("label");i.setAttribute("for",this.id),i.innerHTML=this.name,i.appendChild(e),t.appendChild(i);let l=document.createElement("blockquote");l.innerHTML=this.desc,l.setAttribute("for",this.id),t.appendChild(l),document.getElementById("form").appendChild(t),new ErrorToolTip(this.id).addChangeListener()}e.value=String(this.value)}setElementDefaultValue(){document.getElementById(this.id).value=String(this.defval)}removeElement(){let e=this.getInputElement();e&&e.parentElement.parentElement.remove()}showElement(){let e=this.getInputElement();e&&e.parentElement.parentElement.style.removeProperty("display")}hideElement(){let e=this.getInputElement();e&&e.parentElement.parentElement.style.setProperty("display","none")}}var CustTable=[new CustEntry("mtcConf","DRAM Timing",CustPlatform.Mariko,2,"<li><b>0</b>: AUTO_ADJ_MARIKO_SAFE: Auto adjust timings for LPDDR4 ≤3733 Mbps specs, 8Gb density. (Default)</li> <li><b>1</b>: AUTO_ADJ_MARIKO_4266: Auto adjust timings for LPDDR4X 4266 Mbps specs, 8Gb density.</li> <li><b>2</b>: NO_ADJ_ALL: No timing adjustment for both Erista and Mariko. Might achieve better performance on Mariko but lower maximum frequency is expected.",0,[0,2],1),new CustEntry("marikoCpuMaxClock","Mariko CPU Max Clock in kHz",CustPlatform.Mariko,4,"<li>System default: 1785000</li> <li>2397000 might be unreachable for some SoCs.</li>",2397e3,[1785e3,3e6],1),new CustEntry("marikoCpuBoostClock","Mariko CPU Boost Clock in kHz",CustPlatform.Mariko,4,"<li>System default: 1785000</li> <li>Boost clock will be applied when applications request higher CPU frequency for quicker loading.</li> <li>This will be set regardless of whether sys-clk is enabled.</li>",1785e3,[102e4,3e6],1,!1),new CustEntry("marikoCpuMaxVolt","Mariko CPU Max Voltage in mV",CustPlatform.Mariko,4,"<li>System default: 1120</li> <li>Acceptable range: 1100 ≤ x ≤ 1300</li>",1235,[1100,1300],5),new CustEntry("marikoGpuMaxClock","Mariko GPU Max Clock in kHz",CustPlatform.Mariko,4,"<li>System default: 921600</li> <li>Tegra X1+ official maximum: 1267200</li> <li>1305600 might be unreachable for some SoCs.</li>",1305600,[768e3,1536e3],100),new CustEntry("marikoEmcMaxClock","Mariko RAM Max Clock in kHz",CustPlatform.Mariko,4,"<li>Values should be ≥ 1600000, and divided evenly by 3200.</li> <li><b>WARNING:</b> RAM overclock could be UNSTABLE if timing parameters are not suitable for your DRAM</li>",1996800,[16e5,24e5],3200),new CustEntry("marikoEmcVddqVolt","EMC Vddq (Mariko Only) Voltage in uV",CustPlatform.Mariko,4,"<li>Acceptable range: 550000 ≤ x ≤ 650000</li> <li>Value should be divided evenly by 5000</li> <li>Default: 600000</li> <li>Not enabled by default.</li> <li>This will not work without sys-clk-OC.</li>",0,[55e4,65e4],5e3),new CustEntry("eristaCpuMaxVolt","Erista CPU Max Voltage in mV",CustPlatform.Erista,4,"<li>Acceptable range: 1100 ≤ x ≤ 1300</li>",1235,[1100,1300],1),new CustEntry("eristaEmcMaxClock","Erista RAM Max Clock in kHz",CustPlatform.Erista,4,"<li>Values should be ≥ 1600000, and divided evenly by 3200.</li> <li><b>WARNING:</b> RAM overclock could be UNSTABLE if timing parameters are not suitable for your DRAM</li>",1862400,[16e5,24e5],3200),new CustEntry("commonEmcMemVolt","EMC Vddq (Erista Only) & RAM Vdd2 Voltage in uV",CustPlatform.AlLine truncated
|
||||
@@ -28,7 +28,7 @@
|
||||
border-right-width: var(--border-width);
|
||||
}
|
||||
|
||||
nav[role="tab-control"] > button:not(.secondary) {
|
||||
nav[role="tab-control"] > button:not(.outline) {
|
||||
pointer-events: none;
|
||||
cursor: default;
|
||||
}
|
||||
@@ -374,8 +374,8 @@
|
||||
<body>
|
||||
<nav role="tab-control">
|
||||
<button class="" id="tab_all" data-filter="0" disabled>Show All</button>
|
||||
<button class="outline secondary" id="tab_erista" data-filter="1" disabled>For Erista</button>
|
||||
<button class="outline secondary" id="tab_mariko" data-filter="2" disabled>For Mariko</button>
|
||||
<button class="outline" id="tab_erista" data-filter="1" disabled>For Erista</button>
|
||||
<button class="outline" id="tab_mariko" data-filter="2" disabled>For Mariko</button>
|
||||
</nav>
|
||||
<form id="form">
|
||||
<label for="file">
|
||||
|
||||
+20
-5
@@ -39,7 +39,7 @@ class CustEntry {
|
||||
validate(): boolean {
|
||||
let tip = new ErrorToolTip(this.id);
|
||||
tip.clear();
|
||||
if (Number.isNaN(this.value) || !this.value) {
|
||||
if (Number.isNaN(this.value) || this.value === undefined) {
|
||||
tip.setMsg(`Invalid value: Not a number`);
|
||||
tip.show();
|
||||
return false;
|
||||
@@ -313,7 +313,7 @@ function SaveCust(buffer) {
|
||||
|
||||
CustTable.forEach(i => {
|
||||
i.updateValueFromElement();
|
||||
if (!i.validate() || !i.value) {
|
||||
if (!i.validate()) {
|
||||
document.getElementById(i.id)!.focus();
|
||||
throw new Error(`Invalid ${i.name}`);
|
||||
}
|
||||
@@ -323,10 +323,10 @@ function SaveCust(buffer) {
|
||||
}
|
||||
switch (i.size) {
|
||||
case 2:
|
||||
view.setUint16(i.offset, i.value, true);
|
||||
view.setUint16(i.offset, i.value!, true);
|
||||
break;
|
||||
case 4:
|
||||
view.setUint32(i.offset, i.value, true);
|
||||
view.setUint32(i.offset, i.value!, true);
|
||||
break;
|
||||
default:
|
||||
document.getElementById(i.id)!.focus();
|
||||
@@ -362,7 +362,7 @@ function CustNavTabsInit() {
|
||||
i.removeAttribute("disabled");
|
||||
let platform = Number(i.getAttribute("data-filter")!) as CustPlatform;
|
||||
i.addEventListener('click', (_evt) => {
|
||||
const unfocusedClasses = ["outline", "secondary"];
|
||||
const unfocusedClasses = ["outline"];
|
||||
i.classList.remove(...unfocusedClasses);
|
||||
custNavTabs.filter(j => j != i).forEach(k => k.classList.add(...unfocusedClasses));
|
||||
|
||||
@@ -513,7 +513,22 @@ async function fetchRelease(): Promise<ReleaseInfo | void> {
|
||||
}
|
||||
}
|
||||
|
||||
const isElementVisible = (element: HTMLElement): boolean => {
|
||||
let rect = element.getBoundingClientRect();
|
||||
return (
|
||||
rect.top > 0 &&
|
||||
rect.left > 0 &&
|
||||
rect.bottom - rect.height < (window.innerHeight || document.documentElement.clientHeight) &&
|
||||
rect.right - rect.width < (window.innerWidth || document.documentElement.clientWidth)
|
||||
);
|
||||
};
|
||||
|
||||
async function updateDownloadUrls() {
|
||||
// Wait until download buttons are visible
|
||||
while (!isElementVisible(document.getElementById("download_btn_grid")!)) {
|
||||
await new Promise(r => setTimeout(r, 1000));
|
||||
};
|
||||
|
||||
const updateHref = (id: string, name: string, url: string) => {
|
||||
let element = document.getElementById(id)!;
|
||||
element.innerHTML = name;
|
||||
|
||||
Reference in new issue
Block a user