Fix a stray extra comma in port 30003 output if only GNSS altitude was available.
This commit is contained in:
parent
14a003710e
commit
6f2e4fa891
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