Skip to content

Commit 7042e60

Browse files
bogdanovsjpanisbl
authored andcommitted
simplelink_lpf3: rcl: Fix build warnings
Signed-off-by: Stoyan Bogdanov <[email protected]>
1 parent c371e05 commit 7042e60

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

simplelink_lpf3/source/ti/drivers/rcl/handlers/ble5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ RCL_Events RCL_Handler_BLE5_adv(RCL_Command *cmd, LRF_Events lrfEvents, RCL_Even
487487

488488
/* Find which type of advertising */
489489
RCL_Buffer_TxBuffer *txBuffer = RCL_TxBuffer_head(&advCmd->ctx->txBuffers);
490-
uint16_t advCfg;
490+
uint16_t advCfg = 0;
491491

492492
if (txBuffer != NULL)
493493
{

simplelink_lpf3/source/ti/drivers/rcl/handlers/ble_cs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,10 +1412,10 @@ static int16_t RCL_Handler_BLE_CS_convertRtt(RCL_CmdBleCs *pCmd, uint8_t mode, i
14121412
toAD -= (pCmd->mode.role == RCL_CmdBleCs_Role_Initiator) ? (-adj) : (+adj);
14131413

14141414
/* Convert to 0.5ns units as per HCI spec requires */
1415-
toAD *= 41.6666;
1415+
toAD *= (float)41.6666;
14161416

14171417
/* Round */
1418-
toAD += 0.5;
1418+
toAD += (float)0.5;
14191419

14201420
/* Return the adjusted timeticks */
14211421
return ((int16_t) toAD);

0 commit comments

Comments
 (0)