Fix a stray extra comma in port 30003 output if only GNSS altitude was available.
(cherry picked from commit 6f2e4fa891
)
This commit is contained in:
parent
dda5411882
commit
617a71e36b
2
net_io.c
2
net_io.c
|
@ -594,7 +594,7 @@ static void modesSendSBSOutput(struct modesMessage *mm, struct aircraft *a) {
|
||||||
} else if (trackDataValid(&a->gnss_delta_valid)) {
|
} else if (trackDataValid(&a->gnss_delta_valid)) {
|
||||||
p += sprintf(p, ",%d", mm->altitude - a->gnss_delta);
|
p += sprintf(p, ",%d", mm->altitude - a->gnss_delta);
|
||||||
} else {
|
} else {
|
||||||
p += sprintf(p, ",,");
|
p += sprintf(p, ",");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue