Skip to content

Commit 0710748

Browse files
authored
Merge pull request #911 from particle-iot/bug/sc-138527/remove-wifi-picker-from-macos-on-tachyon-setup
Bug/sc 138527/remove wifi picker from macos on tachyon setup
2 parents 4fe194b + 83b618b commit 0710748

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/tachyon-utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,12 @@ async function getIdentification({ deviceId, partitionTable, partitionFilenames
313313
}
314314

315315
async function promptWifiNetworks(ui = new UI()) {
316-
const { ssids, networks } = await _scanNetworks(ui);
316+
const { ssids, networks } = os.platform() !== 'darwin' ? await _scanNetworks(ui) : { ssids: null, networks: null }; // skip scanning on macOS due to errors and just show manual entry option
317317
const otherNetworkLabel = '[Other Network]';
318318
const rescanLabel = '[Rescan networks]';
319319
let ssid;
320320

321-
if (networks) { // error when trying to get networks
321+
if (networks) { // error when trying to get networks or macOS returning null since we skip it, so just show manual entry option
322322
const choices = [
323323
...ssids,
324324
otherNetworkLabel,

0 commit comments

Comments
 (0)