From 52b57af96299519c82ce9c9ab4e514e1826a234d Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Mon, 22 May 2023 16:46:30 +0200 Subject: [PATCH] Error message fixed --- firmware/data/bottom.js | 2 +- firmware/html/bottom.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/data/bottom.js b/firmware/data/bottom.js index 62474ca..0c609c1 100644 --- a/firmware/data/bottom.js +++ b/firmware/data/bottom.js @@ -453,7 +453,7 @@ return null; } if (tcdata[0].ch1 > 0 || tcdata[0].ch2 > 0 || tcdata[0].ch3 > 0 || tcdata[0].ch4 > 0 || tcdata[9].ch1 > 0 || tcdata[9].ch2 > 0 || tcdata[9].ch3 > 0 || tcdata[9].ch4 > 0) { -showToast('Error: Values for ch1 to ch4 must be 0 for i=0 and i=9.', 'error'); +showToast('Error: Values for ch1 to ch4 must be 0 for the first and last entry.', 'error'); return null; } var currentTime = {hour: new Date().getHours(), min: new Date().getMinutes()}; diff --git a/firmware/html/bottom.js b/firmware/html/bottom.js index 189f7ba..20aa3af 100644 --- a/firmware/html/bottom.js +++ b/firmware/html/bottom.js @@ -563,7 +563,7 @@ function createJsonFromTable() { // Überprüft die Werte für ch1 bis ch4 bei i=0 und i=9 if (tcdata[0].ch1 > 0 || tcdata[0].ch2 > 0 || tcdata[0].ch3 > 0 || tcdata[0].ch4 > 0 || tcdata[9].ch1 > 0 || tcdata[9].ch2 > 0 || tcdata[9].ch3 > 0 || tcdata[9].ch4 > 0) { - showToast('Error: Values for ch1 to ch4 must be 0 for i=0 and i=9.', 'error'); + showToast('Error: Values for ch1 to ch4 must be 0 for the first and last entry.', 'error'); return null; }