Fix a stray extra comma in port 30003 output if only GNSS altitude was available.

This commit is contained in:
Oliver Jowett 2016-10-01 13:11:14 +01:00
parent 14a003710e
commit 6f2e4fa891

View file

@ -594,7 +594,7 @@ static void modesSendSBSOutput(struct modesMessage *mm, struct aircraft *a) {
} else if (trackDataValid(&a->gnss_delta_valid)) {
p += sprintf(p, ",%d", mm->altitude - a->gnss_delta);
} else {
p += sprintf(p, ",,");
p += sprintf(p, ",");
}
}
} else {