simplelink: fix strict aliasing build warning in RF driver
Small fix to prevent strict aliasing warning, which becomes an error on Shippable. Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
This commit is contained in:
parent
e45a3f8ed2
commit
ab9b289a10
|
@ -1010,7 +1010,8 @@ static bool RF_ratDispatchTime(uint32_t* dispatchTimeClockTicks)
|
|||
else
|
||||
{
|
||||
/* Decode the compareTime field. */
|
||||
uint32_t compareTime = ((rfc_CMD_SET_RAT_CMP_t*)&ratCh->chCmd)->compareTime;
|
||||
rfc_CMD_SET_RAT_CMP_t* cmd = (rfc_CMD_SET_RAT_CMP_t *)&ratCh->chCmd;
|
||||
uint32_t compareTime = cmd->compareTime;
|
||||
|
||||
/* Calculate the remained time until this RAT event. The calculation takes
|
||||
into account the minimum power cycle time. */
|
||||
|
|
Loading…
Reference in New Issue