Permalink
Browse files

Backoff bugfix, portability

  • Loading branch information...
gioblu committed Sep 14, 2016
1 parent 5fc8eb1 commit eef959231dc20659ff760b3496096bc0128a4106
Showing with 3 additions and 1 deletion.
  1. +3 −1 PJON.h
4 PJON.h
@@ -649,7 +649,9 @@ limitations under the License. */
if(
(uint32_t)(micros() - packets[i].registration) >
packets[i].timing + (uint32_t)packets[i].attempts * (uint32_t)packets[i].attempts * (uint32_t)packets[i].attempts
(uint32_t)(
packets[i].timing +
((uint32_t)packets[i].attempts * (uint32_t)packets[i].attempts * (uint32_t)packets[i].attempts))
) packets[i].state = send_packet(packets[i].content, packets[i].length);
else continue;

0 comments on commit eef9592

Please sign in to comment.