]> git.droids-corp.org - protos/xbee-avr.git/commitdiff
sq latency
authorOlivier Matz <zer0@droids-corp.org>
Tue, 6 May 2014 20:57:39 +0000 (22:57 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Tue, 6 May 2014 20:57:39 +0000 (22:57 +0200)
rc_proto.c

index 4c09ac3026fdc8e52f8244d282012b24a4d3d89b..4b1ffb19361a788a16fd7481a7264eb458f50ac8 100644 (file)
@@ -790,7 +790,7 @@ void rc_proto_dump_stats(void)
        printf_P(PSTR("  servo_tx: %"PRIu32"\r\n"), peer_stats.servo_tx);
        printf_P(PSTR("  stats_rx: %"PRIu32"\r\n"), peer_stats.stats_rx);
        printf_P(PSTR("  stats_tx: %"PRIu32"\r\n"), peer_stats.stats_tx);
-       if (stats.echo_ans_rx != 0) {
+       if (peer_stats.echo_ans_rx != 0) {
                printf_P(PSTR("  echo_ans_latency_ms: %"PRIu32"\r\n"),
                        peer_stats.echo_ans_latency_sum / peer_stats.echo_ans_rx);
        }