Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 );
}
/*****************************************************************************/