cc3100_Socket_Wifi_Server with Ethernet Interface not working

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of cc3100_Test_Demo by David Fletcher

Revision:
4:5af740da0a59
Parent:
0:e89ba455dbcf
diff -r b89198ac2efe -r 5af740da0a59 simplelink/cc3100_netcfg.cpp
--- a/simplelink/cc3100_netcfg.cpp	Sun Feb 22 18:33:10 2015 +0000
+++ b/simplelink/cc3100_netcfg.cpp	Mon Feb 23 21:10:13 2015 +0000
@@ -99,9 +99,9 @@
 	     return((((uint32_t)add_3 << 24) & 0xFF000000) | (((uint32_t)add_2 << 16) & 0xFF0000) | (((uint32_t)add_1 << 8) & 0xFF00) | ((uint32_t)add_0 & 0xFF) );
 }
 
-uint8_t cc3100_netcfg::SL_IPV4_BYTE(uint8_t val,uint8_t index){
+uint8_t cc3100_netcfg::SL_IPV4_BYTE(uint32_t val,uint8_t index){
 	                  
-	    return( (val >> (index*8)) & 0xFF );
+	    return( (val >>= (index*8)) & 0xFF );
 }	                  
 
 /*****************************************************************************/