version_2.0
Dependents: cc3000_ping_demo_try_2
Fork of cc3000_hostdriver_mbedsocket by
Diff: cc3000_socket.cpp
- Revision:
- 4:15b58c119a0a
- Parent:
- 0:615c697c33b0
- Child:
- 5:245ac5b73132
--- a/cc3000_socket.cpp Thu Sep 19 08:04:22 2013 +0000 +++ b/cc3000_socket.cpp Sat Sep 21 15:01:05 2013 +0000 @@ -101,7 +101,7 @@ } else { - uint16 free_buffer = _simple_link.get_number_free_buffers(); + uint16_t free_buffer = _simple_link.get_number_free_buffers(); free_buffer--; _simple_link.set_number_free_buffers(free_buffer); return 0; @@ -140,6 +140,7 @@ int32_t ret; uint8_t *ptr, *args; + while(_simple_link.get_number_free_buffers() != SOCKET_MAX_FREE_BUFFERS); ret = EFAIL; ptr = _simple_link.get_transmit_buffer(); args = (ptr + HEADERS_SIZE_CMD);