From 617a71e36b921954c3b27d121ddb96e4d04bd73b Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Sat, 1 Oct 2016 13:11:14 +0100 Subject: [PATCH] Fix a stray extra comma in port 30003 output if only GNSS altitude was available. (cherry picked from commit 6f2e4fa891700e63ef43fcb5c1f4a82a8c35be7f) --- net_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net_io.c b/net_io.c index a16d436..e2f5ea1 100644 --- a/net_io.c +++ b/net_io.c @@ -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 {