Skip to content

Commit f1618b2

Browse files
committed
decode new timing telemetry
1 parent dfa2f54 commit f1618b2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

comsock/main.c

+8
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,12 @@ void write_to_file(TO_t *to)
377377
fprintf(to_file, "MOTORB=%d", to->objects[i].data);
378378
} else if (TO_PARAM_RFM_RSSI == to->objects[i].param) {
379379
fprintf(to_file, "RSSI=%d", to->objects[i].data);
380+
} else if (TO_PARAM_RFM_SEND_MS == to->objects[i].param) {
381+
fprintf(to_file, "SEND_MS=%lu", (unsigned long)to->objects[i].data);
380382
} else if (TO_PARAM_CAM_LEN == to->objects[i].param) {
381383
fprintf(to_file, "CAM_LEN=%lu", (unsigned long)to->objects[i].data);
384+
} else if (TO_PARAM_CAM_READ_MS == to->objects[i].param) {
385+
fprintf(to_file, "CAM_READ=%lu", (unsigned long)to->objects[i].data);
382386
} else {
383387
fprintf(to_file, "%d=0x%08x", to->objects[i].param, to->objects[i].data);
384388
}
@@ -440,8 +444,12 @@ void write_to_json_file(TO_t *to)
440444
json_field_int(to_json_file, "MOTORB", (int)to->objects[i].data);
441445
} else if (TO_PARAM_RFM_RSSI == to->objects[i].param) {
442446
json_field_int(to_json_file, "RSSI", to->objects[i].data);
447+
} else if (TO_PARAM_RFM_SEND_MS == to->objects[i].param) {
448+
json_field_int(to_json_file, "SEND_MS", to->objects[i].data);
443449
} else if (TO_PARAM_CAM_LEN == to->objects[i].param) {
444450
json_field_int(to_json_file, "CAM_LEN", to->objects[i].data);
451+
} else if (TO_PARAM_CAM_READ_MS == to->objects[i].param) {
452+
json_field_int(to_json_file, "CAM_READ_MS", to->objects[i].data);
445453
} else {
446454
sprintf(param_buf, "%d", to->objects[i].param);
447455
sprintf(value_buf, "0x%08x", to->objects[i].data);

0 commit comments

Comments
 (0)