From 6f2e4fa891700e63ef43fcb5c1f4a82a8c35be7f 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. --- net_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net_io.c b/net_io.c index 51a9bec..32fe56d 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 {