do not use LMIC_setClockError
This commit is contained in:
parent
794b4066ed
commit
eb419b016a
|
|
@ -425,17 +425,10 @@ void setup_flash(void)
|
||||||
|
|
||||||
void setup_uplink(void)
|
void setup_uplink(void)
|
||||||
{
|
{
|
||||||
#if defined(_mcci_arduino_version) && _mcci_arduino_version >= _mcci_arduino_version_calc(2,4,0,90) && \
|
|
||||||
defined(CATENA_ARDUINO_PLATFORM_VERSION_CALC) && CATENA_ARDUINO_PLATFORM_VERSION >= CATENA_ARDUINO_PLATFORM_VERSION_CALC(0,17,0,10)
|
|
||||||
LMIC_setClockError(5*65536/100);
|
|
||||||
#else
|
|
||||||
LMIC_setClockError(10*65536/100);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Do an unjoin, so every reboot will trigger a join
|
// Do an unjoin, so every reboot will trigger a join
|
||||||
gCatena.SafePrintf("Do an unjoin...\n");
|
gCatena.SafePrintf("Do an unjoin...\n");
|
||||||
LMIC_unjoin();
|
LMIC_unjoin();
|
||||||
LMIC_setLinkCheckMode(1);
|
|
||||||
|
|
||||||
/* trigger a join by sending the first packet */
|
/* trigger a join by sending the first packet */
|
||||||
if (!(gCatena.GetOperatingFlags() & static_cast<uint32_t>(gCatena.OPERATING_FLAGS::fManufacturingTest))) {
|
if (!(gCatena.GetOperatingFlags() & static_cast<uint32_t>(gCatena.OPERATING_FLAGS::fManufacturingTest))) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue