clean up warnings

remove warning option -Wpointer-arith
This commit is contained in:
hathach committed 2017-04-08 17:22:56 +07:00
1 parent 2ab46a03fa
commit c46fe5b9be
4 files changed
+8 -5

No files matched your search

-2
View File
@@ -131,8 +131,6 @@ class AdafruitBluefruit
ble_gap_addr_t peerAddr(void);
bool getTxPacket(uint32_t ms);
/*------------------------------------------------------------------*/
/* Callbacks
*------------------------------------------------------------------*/
@@ -212,8 +212,8 @@ uint16_t BLEAncs::getAttribute(uint32_t uid, uint8_t attr, void* buffer, uint16_
// wait until all data received
// Note (bufsize-_evt_bufsize) is number of bytes received so far
while ( ((attr_len + sizeof(get_notif_attr_t)) > (bufsize-_evt_bufsize))
&& (_evt_bufsize > 0) )
while ( ( (attr_len + sizeof(get_notif_attr_t)) > ((uint16_t) (bufsize-_evt_bufsize)) ) &&
( _evt_bufsize > 0 ) )
{
if ( !xSemaphoreTake(_sem, ms2tick(BLE_ANCS_TIMEOUT)) ) break;
}