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:
- 7:d2052933ebcb
- Parent:
- 0:9e88a9018fc0
- Child:
- 9:e642e8f9ea37
--- a/dot_util.cpp Thu Dec 15 16:22:10 2016 +0000 +++ b/dot_util.cpp Thu Dec 15 23:50:05 2016 +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 < 10) { - delay_s = 10; + if (delay_s < 30) { + delay_s = 30; } logInfo("%ssleeping %lus", deepsleep ? "deep" : "", delay_s);