Skip to content

Commit 9f57337

Browse files
committed
Explicitly cast RHS to uint16_t
1 parent 4f92bc5 commit 9f57337

File tree

1 file changed

+1
-1
lines changed
  • firmware/nRF51/tag-proximity/src

1 file changed

+1
-1
lines changed

firmware/nRF51/tag-proximity/src/radio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ void RADIO_IRQ_Handler(void)
423423
{
424424
g_pkt_tracker.p.status.flags &= 0x00FF;
425425
g_pkt_tracker.p.status.flags |=
426-
(uint8_t) ( (reset_reason & 0x0F) | ((reset_reason >> 12) & 0x70) ) << 8;
426+
(uint16_t) ( (reset_reason & 0x0F) | ((reset_reason >> 12) & 0x70) ) << 8;
427427
}
428428

429429
#if !CONFIG_FLASH_LOGGING

0 commit comments

Comments
 (0)