Skip to content

Commit 76adb5d

Browse files
committed
add relax clock error
1 parent 97d53e0 commit 76adb5d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/helium-us915/helium-us915.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,13 @@ void setup() {
296296
// Reset the MAC state. Session and pending data transfers will be discarded.
297297
LMIC_reset();
298298

299+
// allow much more clock error than the X/1000 default. See:
300+
// https://github.com/mcci-catena/arduino-lorawan/issues/74#issuecomment-462171974
301+
// https://github.com/mcci-catena/arduino-lmic/commit/42da75b56#diff-16d75524a9920f5d043fe731a27cf85aL633
302+
// the X/1000 means an error rate of 0.1%; the above issue discusses using values up to 10%.
303+
// so, values from 10 (10% error, the most lax) to 1000 (0.1% error, the most strict) can be used.
304+
LMIC_setClockError(1 * MAX_CLOCK_ERROR / 40);
305+
299306
LMIC_setLinkCheckMode(0);
300307
LMIC_setDrTxpow(DR_SF7,14);
301308
LMIC_selectSubBand(6);

0 commit comments

Comments
 (0)