mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
silence extended segment address warning
This commit is contained in:
parent
2b416c6821
commit
4d13916ece
1 changed files with 14 additions and 2 deletions
|
@ -73,7 +73,9 @@ function read_hex_file(data) {
|
|||
break;
|
||||
case 0x02: // extended segment address record
|
||||
// not implemented
|
||||
if (parseInt(content, 16) != 0) { // ignore if segment is 0
|
||||
console.log('extended segment address record found - NOT IMPLEMENTED !!!');
|
||||
}
|
||||
break;
|
||||
case 0x03: // start segment address record
|
||||
// not implemented
|
||||
|
@ -112,9 +114,19 @@ function read_hex_file(data) {
|
|||
}
|
||||
}
|
||||
|
||||
function microtime() {
|
||||
var now = new Date().getTime() / 1000;
|
||||
|
||||
return now;
|
||||
}
|
||||
|
||||
onmessage = function(event) {
|
||||
var time_parsing_start = microtime(); // track time
|
||||
|
||||
read_hex_file(event.data);
|
||||
|
||||
console.log('HEX_PARSER - File parsed in: ' + (microtime() - time_parsing_start).toFixed(4) + ' seconds');
|
||||
|
||||
// terminate worker
|
||||
close();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue