180718 HJM : 8 Count sensing data RF send, certTest, temp(cold)Test
Fork of EV-COG-AD3029LZ by
Diff: source/SimpleSpirit1.cpp
- Revision:
- 71:4a7772415d9c
- Parent:
- 70:19b5f9b9ba80
- Child:
- 82:a18c22d2b83a
diff -r 19b5f9b9ba80 -r 4a7772415d9c source/SimpleSpirit1.cpp --- a/source/SimpleSpirit1.cpp Thu Jul 13 09:21:06 2017 +0200 +++ b/source/SimpleSpirit1.cpp Tue Jul 18 09:53:41 2017 +0200 @@ -13,15 +13,9 @@ do { \ uint32_t start = us_ticker_read(); \ uint32_t limit = (uint32_t)millisecs*1000U; \ - \ while (!(cond)) { \ uint32_t now = us_ticker_read(); \ - \ - if(now >= start) { \ - if((now - start) > limit) break; \ - } else { \ - if((now + ~start) > limit) break; \ - } \ + if((now - start) > limit) break; \ } \ } while(0)