Skip to content

Commit

Permalink
Define default values for options in the port handler (#4003)
Browse files Browse the repository at this point in the history
  • Loading branch information
McGiverGim authored Jun 3, 2024
1 parent ac27e8f commit 2f4337b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/js/port_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ const PortHandler = new function () {
selectedBauds: DEFAULT_BAUDS,
portOverride: getConfig('portOverride', '/dev/rfcomm0').portOverride,
virtualMspVersion: "1.46.0",
autoConnect: getConfig('autoConnect').autoConnect,
autoConnect: getConfig('autoConnect', false).autoConnect,
};
this.portPickerDisabled = false;
this.dfuAvailable = false;
this.portAvailable = false;
this.showAllSerialDevices = false;
this.showVirtualMode = getConfig('showVirtualMode').showVirtualMode;
this.showManualMode = getConfig('showManualMode').showManualMode;
this.showAllSerialDevices = getConfig('showAllSerialDevices').showAllSerialDevices;
this.showVirtualMode = getConfig('showVirtualMode', false).showVirtualMode;
this.showManualMode = getConfig('showManualMode', false).showManualMode;
this.showAllSerialDevices = getConfig('showAllSerialDevices', false).showAllSerialDevices;
};

PortHandler.initialize = function () {
Expand Down

0 comments on commit 2f4337b

Please sign in to comment.