Skip to content

Commit

Permalink
Merge pull request #2335 from Asizon/improve_hardwareId_check
Browse files Browse the repository at this point in the history
Improving hardwareId behavior
  • Loading branch information
mikeller authored Dec 13, 2020
2 parents a249110 + 0a98eee commit 21f5137
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/components/betaflight-logo/BetaflightLogo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
opacity: 0.5;
font-size: 10px;
min-width: 210px;
display: flex;
flex-direction: column;
}
.tab_container .logo {
Expand Down Expand Up @@ -73,15 +75,13 @@
<div class="logo_text">
<span>
{{ $t("versionLabelConfigurator") }}: {{ configuratorVersion }}
<br />
<span v-if="firmwareVersion && firmwareId">
{{ $t("versionLabelFirmware") }}: {{ firmwareVersion }}
{{ firmwareId }}
</span>
<br />
<span v-if="hardwareId">
{{ $t("versionLabelTarget") }}: {{ hardwareId }}
</span>
</span>
<span v-if="firmwareVersion && firmwareId">
{{ $t("versionLabelFirmware") }}: {{ firmwareVersion }}
{{ firmwareId }}
</span>
<span v-if="hardwareId">
{{ $t("versionLabelTarget") }}: {{ hardwareId }}
</span>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/js/port_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ PortHandler.check_usb_devices = function (callback) {
callback(self.dfu_available);
}
if (!$('option:selected', self.portPickerElement).data().isDFU) {
if (!GUI.connected_to) {
if (!(GUI.connected_to || GUI.connect_lock)) {
FC.resetState();
}
self.portPickerElement.trigger('change');
Expand Down

0 comments on commit 21f5137

Please sign in to comment.