Skip to content

Commit

Permalink
Merge pull request #1897 from pan-/fix_nrf51_rtos_ticker
Browse files Browse the repository at this point in the history
Fix function RTOS ticker of nrf51 port
  • Loading branch information
sg- authored Jun 10, 2016
2 parents 123d55d + 6315f8e commit dc1c716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/us_ticker.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,9 @@ static inline bool is_in_wrapped_range(uint32_t begin, uint32_t end, uint32_t va
// return true if begin <= val < end
if (begin < end) {
if (begin <= val && val < end) {
return false;
} else {
return true;
} else {
return false;
}
} else {
// In this case end < begin because it has wrap around the limits
Expand Down

0 comments on commit dc1c716

Please sign in to comment.