WIZNet W5500 with additional enhancements
Fork of WIZnetInterface by
Diff: Socket/TCPSocketServer.cpp
- Revision:
- 32:f6d76a55a50b
- Parent:
- 0:6f28332c466f
- Child:
- 34:7d44648ec5f2
--- a/Socket/TCPSocketServer.cpp Sat Oct 07 15:08:58 2017 +0200
+++ b/Socket/TCPSocketServer.cpp Sat Oct 07 16:26:55 2017 +0200
@@ -71,7 +71,7 @@
}
uint32_t ip = eth->sreg<uint32_t>(_sock_fd, Sn_DIPR);
char host[16];
- snprintf(host, sizeof(host), "%d.%d.%d.%d", (ip>>24)&0xff, (ip>>16)&0xff, (ip>>8)&0xff, ip&0xff);
+ snprintf(host, sizeof(host), "%d.%d.%d.%d", (int)(ip>>24)&0xff, (int)(ip>>16)&0xff, (int)(ip>>8)&0xff, (int)ip&0xff);
uint16_t port = eth->sreg<uint16_t>(_sock_fd, Sn_DPORT);
// change this server socket to connection socket.
Helmut Tschemernjak
