From dfce6c2b4fc0a524b105bca5fd0d8cdb64366410 Mon Sep 17 00:00:00 2001 From: Russel Yasol Date: Sun, 14 Jul 2024 10:49:42 +0800 Subject: [PATCH] added support for rm502 --- simpleadmin/www/index.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/simpleadmin/www/index.html b/simpleadmin/www/index.html index a9550d7..faa6592 100644 --- a/simpleadmin/www/index.html +++ b/simpleadmin/www/index.html @@ -682,10 +682,17 @@ // --- Temperature --- // find this example value from lines "+QTEMP:"cpuss-0-usr","50" - this.temperature = lines - .find((line) => line.includes('+QTEMP:"cpuss-0-usr"')) - .split(",")[1] - .replace(/"/g, ""); + try { + this.temperature = lines + .find((line) => line.includes('+QTEMP:"cpuss-0-usr"')) + .split(",")[1] + .replace(/"/g, ""); + } catch (error) { + this.temperature = lines + .find((line) => line.includes('+QTEMP:"cpu0-a7-usr"')) + .split(",")[1] + .replace(/"/g, ""); + } // --- SIM Status --- // find this example value from lines "+QSIMSTAT: 0,1"