Skip to content

Commit

Permalink
Fix another JSON syntax fubar
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fb-martin committed Jan 12, 2020
1 parent dbee819 commit adaed05
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hc_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,8 @@ static const char *hc_http_gps (const char *method, const char *uri,
prefix = "\",\"";
}
strcat (JsonBuffer, "\"]");
prefix = ",\"history\":[";
} else {
prefix = "\"history\":[";
}
prefix = ",\"history\":[";

for (i = 0; i < HC_NMEA_DEPTH; ++i) {
gpsSentence *item = nmea_db->history + i;
Expand Down

0 comments on commit adaed05

Please sign in to comment.