[core] Fix lwip_ioctl variable size

This commit is contained in:
Kuba Szczodrzyński
2022-04-28 11:39:30 +02:00
parent 5050f2402e
commit 8383ebabeb
2 changed files with 3 additions and 3 deletions

View File

@@ -155,10 +155,10 @@ SPI | ❌
Wire | ❌
**OTHER LIBRARIES** |
Wi-Fi Station | ✔️
Wi-Fi Access Point |
Wi-Fi Access Point | ✔️
Wi-Fi Events | ❌
Wi-Fi Client (SSL) | ✔️ (❌)
Wi-Fi Server |
Wi-Fi Server | ✔️
SPIFFS | ❌
BLE | -
HTTP | ❌

View File

@@ -18,7 +18,7 @@ size_t LwIPRxBuffer::r_available() {
if (_sock < 0) {
return 0;
}
int count;
uint16_t count = 0;
int res = lwip_ioctl(_sock, FIONREAD, &count);
if (res < 0) {
_failed = true;