From 177f93844c3102e5c8bc0e81ba1440743469c9b7 Mon Sep 17 00:00:00 2001 From: Skip Hansen Date: Sun, 23 Mar 2025 11:23:43 -0700 Subject: [PATCH] Display SN rather than MAC for wider range of Chroma tags. --- ESP32_AP-Flasher/wwwroot/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ESP32_AP-Flasher/wwwroot/main.js b/ESP32_AP-Flasher/wwwroot/main.js index fb9d9d2a..a7c24ba4 100644 --- a/ESP32_AP-Flasher/wwwroot/main.js +++ b/ESP32_AP-Flasher/wwwroot/main.js @@ -299,7 +299,7 @@ function processTags(tagArray) { if (alias.match(/^4467/)) { let macdigit = Number.parseInt(alias.substr(4, 2), 16) & 0x1f; let model = String.fromCharCode(macdigit + 65); - if (model == 'J' || model == 'M') { + if (model >= 'A' && model <= 'Z') { macdigit = Number.parseInt(alias.substr(6, 2), 16) & 0x1f; model += String.fromCharCode(macdigit + 65); alias = model + alias.substr(8, 8) + 'x'