Skip to content

Commit 3cd1df3

Browse files
authored
Remove address from fw updater command (#523)
* Remove adress * Bump beta version * Bump to release version
1 parent fefbbfe commit 3cd1df3

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "arduino-create-agent-js-client",
3-
"version": "2.5.0",
3+
"version": "2.6.0",
44
"description": "JS module providing discovery of the Arduino Create Plugin and communication with it",
55
"main": "lib/index.js",
66
"module": "es/index.js",

‎src/firmware-updater.js

+2-18
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import { BehaviorSubject } from 'rxjs';
2-
import {
3-
takeUntil,
4-
filter,
5-
first
6-
} from 'rxjs/operators';
72
import semverCompare from 'semver-compare';
3+
import { takeUntil, filter, first } from 'rxjs/operators';
84
import { fwupdaterSignatures, oldFwupdaterSignatures } from './signatures';
95

106
/* The status of the Firmware Updater Tool */
@@ -191,18 +187,6 @@ export default class FirmwareUpdater {
191187
}
192188
});
193189

194-
let addresses = '';
195-
const rootCertificates = [{
196-
domain: 'arduino.cc',
197-
port: 443
198-
}];
199-
200-
rootCertificates.forEach(address => {
201-
if (address.domain && address.port) {
202-
addresses += `-address ${address.domain}:${address.port} `;
203-
}
204-
});
205-
206190
const [programmer, signature] = programmerFor(boardId);
207191

208192
if (!this.loaderPath) {
@@ -217,7 +201,7 @@ export default class FirmwareUpdater {
217201
hex: '',
218202
extra: {
219203
auth: {
220-
password: `"${this.loaderPath}" -firmware "${this.firmwareVersionData.Path}" ${addresses}`,
204+
password: `"${this.loaderPath}" -firmware "${this.firmwareVersionData.Path}"`,
221205
},
222206
},
223207
signature,

0 commit comments

Comments
 (0)