From 42769d8c5203cd5156ed0bf0ebdde3c611cdaef0 Mon Sep 17 00:00:00 2001 From: kou029w Date: Fri, 21 Apr 2017 19:13:45 +0900 Subject: [PATCH] =?UTF-8?q?resp->resp=5Ftime=E3=81=8C0=E3=81=AE=E5=A0=B4?= =?UTF-8?q?=E5=90=88=E3=80=81=E6=AC=A1=E3=81=AE=E3=83=AC=E3=82=B9=E3=83=9D?= =?UTF-8?q?=E3=83=B3=E3=82=B9=E3=81=AE=E3=81=A8=E3=81=8D=E6=84=8F=E5=9B=B3?= =?UTF-8?q?=E3=81=97=E3=81=AA=E3=81=84=E4=B8=8A=E6=9B=B8=E3=81=8D=E3=81=82?= =?UTF-8?q?=E3=82=8B=E4=B8=8D=E5=85=B7=E5=90=88=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/k2ping.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k2ping.ino b/src/k2ping.ino index 99aa307..0498b8e 100644 --- a/src/k2ping.ino +++ b/src/k2ping.ino @@ -102,7 +102,7 @@ void ping_recv_cb(void *_option, void *_resp) { } else { success++; avg_time += resp->resp_time; - if (min_time == 0 || resp->resp_time < min_time) min_time = resp->resp_time; + if (success == 1 || resp->resp_time < min_time) min_time = resp->resp_time; if (resp->resp_time > max_time) max_time = resp->resp_time; total_bytes += resp->bytes; lcd.setCursor(0, 1);