Skip to content

Commit 28b927d

Browse files
author
Veijo Pesonen
committed
fixup! Fixes signess bug
1 parent 483ba89 commit 28b927d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ESP8266Interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ int ESP8266Interface::socket_close(void *handle)
396396

397397
socket->connected = false;
398398
_sock_i[socket->id].open = false;
399-
_sock_i[socket->id].sport = -1;
399+
_sock_i[socket->id].sport = 0;
400400
delete socket;
401401
return err;
402402
}

ESP8266Interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ class ESP8266Interface : public NetworkStack, public WiFiInterface {
354354
// Drivers's socket info
355355
struct _sock_info {
356356
bool open;
357-
int32_t sport;
357+
uint16_t sport;
358358
};
359359
struct _sock_info _sock_i[ESP8266_SOCKET_COUNT];
360360

0 commit comments

Comments
 (0)