File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -909,21 +909,21 @@ def socket_close(self, socket_num: int) -> None:
909
909
timeout = time .monotonic () + 5.0
910
910
self .write_sncr (socket_num , _CMD_SOCK_CLOSE )
911
911
debug_msg (" Waiting for close command to process…" , self ._debug )
912
- while self .read_sncr (socket_num ):
912
+ while self .read_sncr (socket_num )[ 0 ] :
913
913
if time .monotonic () < timeout :
914
914
raise RuntimeError (
915
915
"Wiznet5k failed to complete command, status = {}." .format (
916
- self .read_sncr (socket_num )
916
+ self .read_sncr (socket_num )[ 0 ]
917
917
)
918
918
)
919
919
time .sleep (0.0001 )
920
920
debug_msg (" Waiting for socket to close…" , self ._debug )
921
921
timeout = time .monotonic () + 5.0
922
- while self .read_snsr (socket_num ) != SNSR_SOCK_CLOSED :
922
+ while self .read_snsr (socket_num )[ 0 ] != SNSR_SOCK_CLOSED :
923
923
if time .monotonic () > timeout :
924
924
raise RuntimeError (
925
925
"Wiznet5k failed to close socket, status = {}." .format (
926
- self .read_snsr (socket_num )
926
+ self .read_snsr (socket_num )[ 0 ]
927
927
)
928
928
)
929
929
time .sleep (0.0001 )
You can’t perform that action at this time.
0 commit comments