vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.91k stars 709 forks source link

Fixed modemGetAvailable() and modemGetConnected() when socket[0] is no connected #637

Open Bascy opened 2 years ago

Bascy commented 2 years ago

Both methods update status of all connections, but guards at the beginning would return 0 when socket[0] was not connected