Skip to content

Commit 0ce8ef7

Browse files
authored
Add mcu_id to statusbar (#763)
1 parent f3e80b9 commit 0ce8ef7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/flightlog_parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ export function FlightLogParser(logData) {
969969
// Just Add them anyway
970970
that.sysConfig[fieldName] = fieldValue;
971971
break;
972-
case "Device UID":
972+
case "DeviceUID":
973973
that.sysConfig.deviceUID = fieldValue;
974974
break;
975975
default:

src/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -516,15 +516,15 @@ function BlackboxLogViewer() {
516516
} else {
517517
$(".log-device-uid-header,.log-device-uid").css('display', 'none');
518518
}
519-
**/
519+
**/
520520

521521
// Add log version information to status bar
522522
const sysConfig = flightLog.getSysConfig();
523+
523524
$(".version", statusBar).text(
524-
(sysConfig["Craft name"] != null ? `${sysConfig["Craft name"]} : ` : "") +
525-
(sysConfig["Firmware revision"] != null
526-
? sysConfig["Firmware revision"]
527-
: "")
525+
(sysConfig["Craft name"] != null && sysConfig["Craft name"].length ? `${sysConfig["Craft name"]} : ` : "") +
526+
(sysConfig["Firmware revision"] != null ? `${sysConfig["Firmware revision"]}` : "") +
527+
(sysConfig.deviceUID != null ? ` (${sysConfig.deviceUID})` : "")
528528
);
529529
$(".looptime", statusBar).text(
530530
stringLoopTime(

0 commit comments

Comments
 (0)