Skip to content

Commit c7a2041

Browse files
committed
Fix flashDevice docs to only show one file since only one is supported
1 parent 45fa7a4 commit c7a2041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/reference/javascript.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ particle.claimDevice({ deviceId: 'DEVICE_ID', auth: token }).then(function(data)
129129
Flash firmware to device
130130

131131
```javascript
132-
particle.flashDevice({ deviceId: 'DEVICE_ID', files: { file1: './path/file1', file2: './path/file2' }, auth: token }).then(function(data) {
132+
particle.flashDevice({ deviceId: 'DEVICE_ID', files: { file1: './path/file1' }, auth: token }).then(function(data) {
133133
console.log('Device flashing started successfully:', data);
134134
}, function(err) {
135135
console.log('An error occurred while flashing the device:', err);
@@ -304,7 +304,7 @@ Flash firmware to a device
304304

305305
```javascript
306306
var flashPr = particle.flashDevice({ deviceId: 'DEVICE_ID',
307-
files: { file1: './path/to/your/file1', file2: './path/to/your/file2' },
307+
files: { file1: './path/to/your/file1' },
308308
auth: token });
309309

310310
flashPr.then(

0 commit comments

Comments
 (0)