Permalink
Browse files

FIX: uninitialized response causing run time check failure by VS (WIN…

…X86 interface)
  • Loading branch information...
Girgitt committed Aug 10, 2017
1 parent 6b87401 commit b0d2711c2a6fe42c9ab1e47bd1fe6a3244639211
Showing with 2 additions and 2 deletions.
  1. +2 −2 PJON.h
4 PJON.h
@@ -1,4 +1,4 @@
/*-O//\ __ __
|-gfo\ |__| | | | |\ | ™
|!y°o:\ | __| |__| | \| v8.2
@@ -496,7 +496,7 @@ class PJON {
/* Try to receive a packet repeatedly with a maximum duration: */
uint16_t receive(uint32_t duration) {
uint16_t response;
uint16_t response = PJON_FAIL;
uint32_t time = PJON_MICROS();
while((uint32_t)(PJON_MICROS() - time) <= duration) {
response = receive();

0 comments on commit b0d2711

Please sign in to comment.