Skip to content

Commit 516617b

Browse files
authored
Merge pull request iNavFlight#12 from nkruzan/patch-1
give user feedback if they choose .hex file
2 parents 71a93ec + a8847e5 commit 516617b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tabs/firmware_flasher.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,12 @@ TABS.firmware_flasher.initialize = function (callback) {
444444
if ( filename.endsWith('_with_bl.hex') ) {
445445
console.log("PROCESS hex:",summary.url);
446446
process_hex(data, summary);
447-
}
448-
if ( filename.endsWith('.apj') ) {
447+
} else if ( filename.endsWith('.apj') ) {
449448
console.log("PROCESS apj:",summary.url);
450449
process_apj(data, summary);
450+
} else {
451+
console.log("Unable to process:",filename);
452+
$('span.progressLabel').text('Unable to process local file. (requires "_with_bl.hex" or ".apj")');
451453
}
452454

453455
});

0 commit comments

Comments
 (0)