Permalink
Browse files

NodeMCU fix undefined random() error if no param

  • Loading branch information...
gioblu committed Jan 11, 2017
1 parent 31d6313 commit 61e7ffddcfd2da1ec42ab0dc9bc37459a3c99c69
Showing with 1 addition and 1 deletion.
  1. +1 −1 PJON.h
2 PJON.h
@@ -138,7 +138,7 @@ limitations under the License. */
randomSeed(analogRead(_random_seed) + device_id_seed);
strategy.begin(device_id_seed);
#if(INCLUDE_ASYNC_ACK)
_packet_id_seed = random() + device_id_seed;
_packet_id_seed = random(65535) + device_id_seed;
#endif
};

0 comments on commit 61e7ffd

Please sign in to comment.