X_NUCLEO_IDB05A1
Dependencies: mbed-os-example-ble-Advertising
Revision 249:2e94d2835c45, committed 2016-06-21
- Comitter:
- Andrea Palmieri
- Date:
- Tue Jun 21 16:58:38 2016 +0200
- Parent:
- 246:d73c4f798379
- Child:
- 250:af83c1fe7b48
- Child:
- 251:86df2c289e7c
- Commit message:
- Get rid of warnings
Signed-off-by: Andrea Palmieri <andrea.palmieri@st.com>
Changed in this revision
--- a/source/bluenrg-hci/hci/controller/bluenrg_gap_aci.c Tue Jun 21 10:18:19 2016 +0200
+++ b/source/bluenrg-hci/hci/controller/bluenrg_gap_aci.c Tue Jun 21 16:58:38 2016 +0200
@@ -1164,7 +1164,7 @@
if(rp.status)
return rp.status;
- Osal_MemCpy(actual_address, rp.address, sizeof(actual_address));
+ Osal_MemCpy(actual_address, rp.address, 6);
return 0;
}
--- a/source/bluenrg-hci/hci/controller/bluenrg_utils.c Tue Jun 21 10:18:19 2016 +0200
+++ b/source/bluenrg-hci/hci/controller/bluenrg_utils.c Tue Jun 21 16:58:38 2016 +0200
@@ -131,11 +131,11 @@
/***********************************************************************
* Erase and Program sectors
************************************************************************/
- for(int i = fw_offset; i < (number_sectors * SECTOR_SIZE); i += SECTOR_SIZE) {
+ for(unsigned int i = fw_offset; i < (number_sectors * SECTOR_SIZE); i += SECTOR_SIZE) {
num_erase_retries = 0;
while (num_erase_retries++ < MAX_ERASE_RETRIES) {
aci_updater_erase_sector(BASE_ADDRESS + i);
- if ((i/SECTOR_SIZE) < (number_sectors-1))
+ if ((i/SECTOR_SIZE) < (unsigned int)(number_sectors-1))
data_size = DATA_SIZE;
else
data_size = MIN_WRITE_BLOCK_SIZE;