Skip to content

Commit 113e6af

Browse files
committed
ping: fix wait condition
1 parent f11beae commit 113e6af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UNOR4USBBridge/ping.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ ping_statistics execute_ping(const char* address, uint8_t ttl, uint8_t count) {
7777
esp_ping_start(ping);
7878

7979
// wait for the end of ping session
80-
while(_stats.status != ping_status::RUNNING) {
80+
while(_stats.status == ping_status::RUNNING) {
8181
delay(10);
8282
}
8383

0 commit comments

Comments
 (0)