adafruit/Adafruit_CC3000_Library — pull request #20 by damellis (2013-10-11 21:23:30+00:00)
Title: Use separate timeout for each AP connection attempt.

With this pull request, the timeout in connectToAP() is reset for each connection attempt, allowing subsequent connections to succeed even if a previous one timed out. Without this change, if the connection attempt times out once, subsequent attempts timeout immediately, since timer is already at 0. That makes it almost impossible to connect after an initial timeout.