Example of using the mDot UDK with the X-NUCLEO-IKS01A2 board
Dependencies: MTS_X_NUCLEO_IKS01A2 libmDot-mbed5
Fork of mDot-IKS01A1 by
Diff: dot_util.cpp
- Revision:
- 9:e642e8f9ea37
- Parent:
- 7:d2052933ebcb
- Child:
- 10:1e3e3ab9c29c
--- a/dot_util.cpp Fri Dec 16 04:24:54 2016 +0000 +++ b/dot_util.cpp Tue Jan 17 22:53:01 2017 +0000 @@ -297,8 +297,8 @@ // in some frequency bands we need to wait until another channel is available before transmitting again // wait at least 10s between transmissions uint32_t delay_s = dot->getNextTxMs() / 1000; - if (delay_s < 30) { - delay_s = 30; + if (delay_s < 10) { + delay_s = 10; } logInfo("%ssleeping %lus", deepsleep ? "deep" : "", delay_s);