blobmsg_add_string(&b, "course", course);
if (gps_fields & GPS_FIELD_SPD)
blobmsg_add_string(&b, "speed", speed);
+ if (gps_fields & GPS_FIELD_SAT)
+ blobmsg_add_string(&b, "satellites", satellites);
+ if (gps_fields & GPS_FIELD_HDP)
+ blobmsg_add_string(&b, "HDOP", hdop);
}
ubus_send_reply(ctx, req, b.head);
unsetenv("DBGLVL");
}
- while ((ch = getopt(argc, argv, "ad:s:S:b:")) != -1) {
+ while ((ch = getopt(argc, argv, "ad:s:Sb:")) != -1) {
switch (ch) {
case 'a':
adjust_clock = -1;