tiny bugfixes

This commit is contained in:
Nic Limper
2023-09-02 11:17:42 +02:00
parent b919445ecc
commit 73ecdd09b4
2 changed files with 3 additions and 1 deletions

View File

@@ -373,6 +373,8 @@ void init_web() {
const uint8_t *payload = reinterpret_cast<const uint8_t *>(&flashData);
sendTagCommand(mac, CMD_DO_LEDFLASH, !taginfo->isExternal, payload);
request->send(200, "text/plain", "ok, request transmitted");
return;
}
}
}

View File

@@ -193,7 +193,7 @@ function processTags(tagArray) {
statusline = "AP";
}
if (element.batteryMv != 0 && element.batteryMv != 1337) {
statusline += ", " + (element.batteryMv >= 2600 ? "&#x2265;" : "") + (element.batteryMv / 1000) + "V";
statusline += ", " + (element.batteryMv == 2600 ? "&#x2265;" : "") + (element.batteryMv / 1000) + "V";
}
if (element.ver != 0 && element.ver != 1) {
$('#tag' + tagmac + ' .received').title = `fw: ${element.ver}`;