Skip to content

Commit 0277279

Browse files
authored
Fix handling of missing G frame (#662)
1 parent 176e082 commit 0277279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/flightlog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ function FlightLog(logData) {
388388
// The G frames need to be processed always. They are "invalid" if not H (Home) has been detected
389389
// before, but if not processed the viewer shows cuts and gaps. This happens if the quad takes off before
390390
// fixing enough satellites.
391-
if (frameValid || (frameType == 'G')) {
391+
if (frameValid || (frameType == 'G' && frame)) {
392392
switch (frameType) {
393393
case 'P':
394394
case 'I':

0 commit comments

Comments
 (0)