Format temperature and rate LCD displays to always show 1 decimal place
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tqxrk8uj4M3w3d3eXm3xK8
This commit is contained in:
+4
-4
@@ -421,7 +421,7 @@ function onTempCtrlChanged(msg) {
|
||||
if (key === 'Soll') {
|
||||
const soll = msg.Soll;
|
||||
if ('Temp' in soll) {
|
||||
document.getElementById('lcd-temp-soll').textContent = soll.Temp;
|
||||
document.getElementById('lcd-temp-soll').textContent = soll.Temp.toFixed(1);
|
||||
if (initialTempSollSync) {
|
||||
document.getElementById('temp-soll').value = Math.round(soll.Temp);
|
||||
initialTempSollSync = false;
|
||||
@@ -431,7 +431,7 @@ function onTempCtrlChanged(msg) {
|
||||
if ('Rate' in soll) {
|
||||
const rate = soll.Rate;
|
||||
if ('Current' in rate) {
|
||||
document.getElementById('lcd-rate-soll').textContent = rate.Current;
|
||||
document.getElementById('lcd-rate-soll').textContent = rate.Current.toFixed(1);
|
||||
}
|
||||
if ('Set' in rate && initialHeatrateSync) {
|
||||
document.getElementById('heatrate-soll').value = rate.Set;
|
||||
@@ -448,11 +448,11 @@ function onTempCtrlChanged(msg) {
|
||||
const ist = msg.Ist;
|
||||
if ('Temp' in ist) {
|
||||
plotTempIst = ist.Temp;
|
||||
document.getElementById('lcd-temp-ist').textContent = ist.Temp;
|
||||
document.getElementById('lcd-temp-ist').textContent = ist.Temp.toFixed(1);
|
||||
updateStepPlates();
|
||||
}
|
||||
if ('Rate' in ist) {
|
||||
document.getElementById('lcd-rate-ist').textContent = ist.Rate;
|
||||
document.getElementById('lcd-rate-ist').textContent = ist.Rate.toFixed(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user