Skip to content

Commit 1297535

Browse files
author
Alberto Iannaccone
authored
fix nano rp2040 (#475)
* fix nano rp2040 * 2.4.5
1 parent da11a65 commit 1297535

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.4.4",
3+
"version": "2.4.5",
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/daemon.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export default class Daemon {
133133
const projectNameIndex = uploadCommandInfo.commandline.indexOf('{build.project_name}');
134134
let ext = uploadCommandInfo.commandline.substring(projectNameIndex + 21, projectNameIndex + 24);
135135
const data = compilationResult[ext] || compilationResult.bin;
136-
if (!ext || !compilationResult[ext]) {
136+
if (!ext || !data) {
137137
console.log('we received a faulty ext property, defaulting to .bin');
138138
ext = 'bin';
139139
}

0 commit comments

Comments
 (0)