Merge pull request #1897 from pan-/fix_nrf51_rtos_ticker

Fix function RTOS ticker of nrf51 port
pull/1901/head
Sam Grove 2016-06-10 17:59:50 +01:00 committed by GitHub
commit dc1c716618
1 changed files with 2 additions and 2 deletions

View File

@ -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