Skip to content

Commit 34420ed

Browse files
committed
Adding support for RP2040.
Work in progress.
1 parent 3cd1df3 commit 34420ed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/chrome-app-daemon.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,9 @@ export default class ChromeOsDaemon extends Daemon {
237237
* data: "compiled sketch"
238238
* }
239239
*/
240-
_upload({
241-
board, port, commandline, data
242-
}) {
243-
try {
240+
_upload(uploadPayload, uploadCommandInfo) {
241+
const { board, port, commandline, data } = uploadPayload;
242+
try {
244243
window.oauth.token().then(token => {
245244
this.channel.postMessage({
246245
command: 'upload',
@@ -249,7 +248,8 @@ export default class ChromeOsDaemon extends Daemon {
249248
port,
250249
commandline,
251250
data,
252-
token: token.token
251+
token: token.token,
252+
extrafiles: uploadCommandInfo.files || []
253253
}
254254
});
255255
});

0 commit comments

Comments
 (0)