Skip to content

Add mcu_id to statusbar #763

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/flightlog_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ export function FlightLogParser(logData) {
// Just Add them anyway
that.sysConfig[fieldName] = fieldValue;
break;
case "Device UID":
case "DeviceUID":
that.sysConfig.deviceUID = fieldValue;
break;
default:
Expand Down
10 changes: 5 additions & 5 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,15 +516,15 @@ function BlackboxLogViewer() {
} else {
$(".log-device-uid-header,.log-device-uid").css('display', 'none');
}
**/
**/

// Add log version information to status bar
const sysConfig = flightLog.getSysConfig();

$(".version", statusBar).text(
(sysConfig["Craft name"] != null ? `${sysConfig["Craft name"]} : ` : "") +
(sysConfig["Firmware revision"] != null
? sysConfig["Firmware revision"]
: "")
(sysConfig["Craft name"] != null && sysConfig["Craft name"].length ? `${sysConfig["Craft name"]} : ` : "") +
(sysConfig["Firmware revision"] != null ? `${sysConfig["Firmware revision"]}` : "") +
(sysConfig.deviceUID != null ? ` (${sysConfig.deviceUID})` : "")
);
$(".looptime", statusBar).text(
stringLoopTime(
Expand Down