1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-23 08:15:19 +03:00

Update serial_backend.js

Added reset for OSD units
This commit is contained in:
Darren Lines 2021-11-12 19:49:19 +00:00 committed by GitHub
parent 65ea4a8763
commit 4831912b5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -237,6 +237,9 @@ function onOpen(openInfo) {
GUI.log(chrome.i18n.getMessage('serialPortOpened', [openInfo.connectionId]));
// Reset the osdUnits
globalSettings.osdUnits = null;
// save selected port with chrome.storage if the port differs
chrome.storage.local.get('last_used_port', function (result) {
if (result.last_used_port) {