Skip to content

Commit 8df05d5

Browse files
committed
Update bool operator to call connected.
1 parent 796ac1e commit 8df05d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Adafruit_CC3000.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ void Adafruit_CC3000_Client::operator=(const Adafruit_CC3000_Client& other) {
13921392

13931393
Adafruit_CC3000_Client::operator bool()
13941394
{
1395-
return true;
1395+
return connected();
13961396
}
13971397

13981398
int Adafruit_CC3000_Client::connect(const char *host, uint16_t port){
@@ -1635,7 +1635,7 @@ int Adafruit_CC3000_Client::available(void) {
16351635
}
16361636

16371637
void Adafruit_CC3000_Client::flush(){
1638-
1638+
// No flush implementation, unclear if necessary.
16391639
}
16401640

16411641
int Adafruit_CC3000_Client::peek(){

0 commit comments

Comments
 (0)