clean up warnings
This commit is contained in:
5 files changed
+9
-4
No files matched your search
@@ -262,7 +262,7 @@ void dbgDumpMemoryCFormat(const char* str, void const *buf, uint16_t count)
|
||||
buf8++;
|
||||
}
|
||||
|
||||
printf("\n\};\n");
|
||||
printf("\n};\n");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -346,7 +346,7 @@ bool BLEAdvertising::_start(uint16_t interval, uint16_t timeout)
|
||||
},
|
||||
.p_peer_addr = NULL , // Undirected advertisement
|
||||
.interval = interval , // advertising interval (in units of 0.625 ms)
|
||||
.duration = timeout*100 , // in 10-ms unit
|
||||
.duration = (uint16_t) (timeout*100), // in 10-ms unit
|
||||
|
||||
.max_adv_evts = 0, // TODO can be used for fast/slow mode
|
||||
.channel_mask = { 0, 0, 0, 0, 0 } , // 40 channel, set 1 to disable
|
||||
|
||||
@@ -144,7 +144,10 @@ uint8_t BLEDiscovery::discoverCharacteristic(uint16_t conn_handle, BLEClientChar
|
||||
// only discover CCCD descriptor
|
||||
if (disc_chr->chars[d].char_props.notify || disc_chr->chars[d].char_props.indicate )
|
||||
{
|
||||
ble_gattc_handle_range_t range = { disc_chr->chars[d].handle_value + 1, _hdl_range.end_handle };
|
||||
ble_gattc_handle_range_t range = {
|
||||
.start_handle = (uint16_t) (disc_chr->chars[d].handle_value + 1),
|
||||
.end_handle = _hdl_range.end_handle
|
||||
};
|
||||
|
||||
if ( range.start_handle <= range.end_handle )
|
||||
{
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include "flash_cache.h"
|
||||
#include "common_func.h"
|
||||
#include "variant.h"
|
||||
@@ -124,6 +125,6 @@ void flash_cache_read (flash_cache_t* fc, void* dst, uint32_t addr, uint32_t cou
|
||||
}
|
||||
else
|
||||
{
|
||||
fc->read(dst, (void*) addr, count);
|
||||
fc->read(dst, addr, count);
|
||||
}
|
||||
}
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "flash_cache.h"
|
||||
#include "nrf_sdm.h"
|
||||
#include "nrf_soc.h"
|
||||
#include "delay.h"
|
||||
#include "rtos.h"
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
||||
Reference in new issue
Block a user