WNCInterface
Dependencies: WncControllerK64F
Fork of WNCInterface by
Diff: Socket/UDPSocket.cpp
- Revision:
- 18:198e9b0acf11
- Parent:
- 9:9f0578ff157a
- Child:
- 25:52bad4105cac
--- a/Socket/UDPSocket.cpp Thu Nov 17 15:49:40 2016 +0000 +++ b/Socket/UDPSocket.cpp Thu Nov 17 16:13:29 2016 +0000 @@ -53,7 +53,7 @@ CHK_WNCFE(( WNCInterface::_pwnc->getWncStatus() == FATAL_FLAG ), fail); if( remote._epAddr.port ) { //make sure the Endpoint has an port assoicated with it if( Socket::connect(remote._epAddr.IP,SOCK_DGRAM,remote._epAddr.port) ) { - if( WNCInterface::_pwnc->write(0,packet,length) ) + if( WNCInterface::_pwnc->write(0,(const std::uint8_t*)packet,length) ) ret = length; close(); }