|
|
@ -344,6 +344,7 @@ static int frsky_telemetry_thread_main(int argc, char *argv[]) |
|
|
|
/* parse incoming data */ |
|
|
|
/* parse incoming data */ |
|
|
|
int nbytes = read(uart, &dbuf[0], sizeof(dbuf)); |
|
|
|
int nbytes = read(uart, &dbuf[0], sizeof(dbuf)); |
|
|
|
bool new_input = frsky_parse_host(&dbuf[0], nbytes, &host_frame); |
|
|
|
bool new_input = frsky_parse_host(&dbuf[0], nbytes, &host_frame); |
|
|
|
|
|
|
|
|
|
|
|
if (new_input) { |
|
|
|
if (new_input) { |
|
|
|
warnx("host frame: ad1:%u, ad2: %u, rssi: %u", |
|
|
|
warnx("host frame: ad1:%u, ad2: %u, rssi: %u", |
|
|
|
host_frame.ad1, host_frame.ad2, host_frame.linkq); |
|
|
|
host_frame.ad1, host_frame.ad2, host_frame.linkq); |
|
|
|