kopia lustrzana https://github.com/projecthorus/radiosonde_auto_rx
Rebase WxR301D decoder for additional SN verification
rodzic
5d00c85069
commit
4efee74fb1
|
@ -12,7 +12,7 @@ from queue import Queue
|
||||||
# MINOR - New sonde type support, other fairly big changes that may result in telemetry or config file incompatability issus.
|
# MINOR - New sonde type support, other fairly big changes that may result in telemetry or config file incompatability issus.
|
||||||
# PATCH - Small changes, or minor feature additions.
|
# PATCH - Small changes, or minor feature additions.
|
||||||
|
|
||||||
__version__ = "1.6.3-beta6"
|
__version__ = "1.6.3-beta7"
|
||||||
|
|
||||||
|
|
||||||
# Global Variables
|
# Global Variables
|
||||||
|
|
|
@ -481,6 +481,8 @@ int print_frame() {
|
||||||
|
|
||||||
// JSON
|
// JSON
|
||||||
if (option_json && gpx.chk2ok) {
|
if (option_json && gpx.chk2ok) {
|
||||||
|
if (gpx.chk1ok && gpx.sn2 == gpx.sn1 && gpx.cnt2 == gpx.cnt1) // double check, unreliable checksums
|
||||||
|
{
|
||||||
char *ver_jsn = NULL;
|
char *ver_jsn = NULL;
|
||||||
fprintf(stdout, "{ \"type\": \"%s\"", "WXR301");
|
fprintf(stdout, "{ \"type\": \"%s\"", "WXR301");
|
||||||
fprintf(stdout, ", \"frame\": %u", gpx.cnt2);
|
fprintf(stdout, ", \"frame\": %u", gpx.cnt2);
|
||||||
|
@ -506,6 +508,7 @@ int print_frame() {
|
||||||
if (ver_jsn && *ver_jsn != '\0') fprintf(stdout, ", \"version\": \"%s\"", ver_jsn);
|
if (ver_jsn && *ver_jsn != '\0') fprintf(stdout, ", \"version\": \"%s\"", ver_jsn);
|
||||||
fprintf(stdout, " }\n");
|
fprintf(stdout, " }\n");
|
||||||
fprintf(stdout, "\n");
|
fprintf(stdout, "\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue