dji-log-parser
dji-log-parser copied to clipboard
issue with dji Fly app
Hi
this is a superb tool (BTW, downloading directly is different from npm...)
I tried it on DJI fly app txt files (not DJI Go 4). There was one issue with images, and I found the way to correct it in index.js:
DJIParser.prototype.isImage = function(buffer, offset) { // var header = buffer.readUInt32(offset); // return header == 3774863615; // JFIF header 0xFF 0xD8 0xFF 0xE0 /* becomes */ var header = buffer.readUInt16(offset); return header == 65496; // JFIF header 0xFF 0xD8 }
However, I have another issue: I don't trap any APP_TIP or APP_WARN event. I know they exist, but I can't find them...
Congrat anyway