Closed eykamp closed 4 years ago
Are you sure coarse_time
is in milliseconds? If I call Ping.ping(ip);
it returns in 4 seconds, which seems to indicate that coarse_time
is in seconds. There are 5 pings by default, and 4 intervals between them.
If I set coarse_time
to 2 instead of 1, it takes 8 seconds to ping. Which, again, strongly suggests that coarse_time
is in seconds!
Hi!
I confirm that coarse_time
is indeed in seconds, so I cannot accept these changes
Pretty minor, but I think this is what you intended. I actually prefer the 1ms delay, as it makes everything feel peppy and overcaffeinated, which is how I like my software.
See: https://github.com/esp8266/Arduino/blob/master/tools/sdk/lwip/include/lwip/app/ping.h lines 24-27