Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of WIZnetInterface by
Diff: arch/int/W7500x_toe.cpp
- Revision:
- 31:f6a5f6d1978b
- Parent:
- 30:6feeaebad180
--- a/arch/int/W7500x_toe.cpp Fri Nov 04 02:28:28 2016 +0000
+++ b/arch/int/W7500x_toe.cpp Fri Nov 04 12:09:25 2016 +0000
@@ -154,17 +154,14 @@
return true;
}
*/
- Serial pc4(PA_13,PA_14);
- pc4.baud(115200);
- pc4.printf("in isconnected4\r\n");
+
uint8_t tmpSn_SR;
tmpSn_SR = sreg<uint8_t>(socket, Sn_SR);
// packet sending is possible, when state is SOCK_CLOSE_WAIT.
if ((tmpSn_SR == SOCK_ESTABLISHED) || (tmpSn_SR == SOCK_CLOSE_WAIT)) {
- pc4.printf("return true\r\n");
return true;
}
- pc4.printf("return false\r\n");
+
return false;
}
// Reset the chip & set the buffer
