TI's CC3100. A test demo with very little testing done!
Fork of cc3100_Test_Demo2 by
Diff: simplelink/cc3100_netcfg.cpp
- Revision:
- 4:5af740da0a59
- Parent:
- 0:e89ba455dbcf
--- 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 ); } /*****************************************************************************/