Added mutex for multiple SPI devices on the same SPI bus
Fork of cc3000_hostdriver_mbedsocket by
Diff: Socket/Socket.cpp
- Revision:
- 17:14b6a3a2b622
- Parent:
- 16:f3676ae62f96
- Child:
- 45:50ab13d8f2dc
diff -r f3676ae62f96 -r 14b6a3a2b622 Socket/Socket.cpp --- a/Socket/Socket.cpp Wed Oct 02 16:00:41 2013 +0000 +++ b/Socket/Socket.cpp Wed Oct 02 20:29:31 2013 +0200 @@ -71,7 +71,7 @@ int ret = _cc3000_module->_socket.select(_sock_fd+1, readset, writeset, NULL, timeout); - DBG_SOCKET("Select on sock_fd: %d, returns %d. fdSet: %d", _sock_fd, ret, fdSet); + DBG_SOCKET("Select on sock_fd: %d, returns %d. fdSet: %d", _sock_fd, ret, FD_ISSET(_sock_fd, &fdSet)); // TODO //return (ret <= 0 || !FD_ISSET(_sock_fd, &fdSet)) ? (-1) : (0);