Some small improvements

This commit is contained in:
2026-01-14 21:57:32 +01:00
parent c03b393cf5
commit b5b7bddb74
3 changed files with 16 additions and 9 deletions

View File

@@ -1085,14 +1085,12 @@
}
});
}
buttonHandlers.converterInfo=function() {
getJson("api/converterInfo").then(function (json) {
let text = "<h3>Converted entities</h3>";
text += "<p><b>NMEA0183 to NMEA2000:</b><br/>";
text += " " + (json.nmea0183 || "").replace(/,/g, ", ");
text += "</p>";
text += "<p><b>NMEA2000 to NMEA0183:</b><br/>";
text += " " + (json.nmea2000 || "").replace(/,/g, ", ");
buttonHandlers.firmwareInfo=function() {
getJson("api/fwinfo").then(function (json) {
let text = "<h3>Firmware details</h3>";
text += "<p><b>Version:</b> " + json.version + "</p>";
text += "<p><b>Build date:</b> " + json.build_date + "</p>";
text += "<p><b>Build time:</b> " + json.build_time + "</p>";
text += "</p>";
showOverlay(text, true);
});