sq latency
[protos/xbee-avr.git] / rc_proto.c
index 4c09ac3..4b1ffb1 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);
        }