Library to control Dodge LX (83.3k) CAN devices
Dependencies: DodgeRadioLib EthernetWrapperLib OBDIILib mbed
Diff: EthernetWrapperLib/Eth.cpp
- Revision:
- 3:2ce0da6b91dc
- Parent:
- 2:e8b13ea2881b
- Child:
- 5:46f139e53b15
--- a/EthernetWrapperLib/Eth.cpp Mon Jan 02 03:53:46 2012 +0000 +++ b/EthernetWrapperLib/Eth.cpp Mon Jan 09 02:42:50 2012 +0000 @@ -25,7 +25,6 @@ bufferSize = buff; receiver = sr; buffer = new char[bufferSize]; - busy = false; udp.setOnEvent(this, &UDPSock::onUDPSocketEvent); udp.bind(*local); @@ -33,10 +32,7 @@ void UDPSock::SendTo(Host *remote, int size, char *data) { - while (busy == true) {}; - busy = true; udp.sendto(data, size, remote); - busy = false; } void UDPSock::onUDPSocketEvent(UDPSocketEvent e) @@ -44,7 +40,6 @@ switch(e) { case UDPSOCKET_READABLE: //The only event for now - printf("got data\r\n"); Host host; while( int len = udp.recvfrom( buffer, bufferSize, &host ) ) {