From 5c7e4ab9e5217e7455baae25908e33321c17f116 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Tue, 12 Feb 2019 23:57:05 +0100 Subject: [PATCH] lorawan.cpp: assert value of CLOCK_ERROR_PROCENTAGE --- src/lorawan.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lorawan.cpp b/src/lorawan.cpp index bc8565de..edc0d630 100644 --- a/src/lorawan.cpp +++ b/src/lorawan.cpp @@ -6,6 +6,10 @@ static const char TAG[] = "lora"; #ifdef HAS_LORA +#if CLOCK_ERROR_PROCENTAGE > 7 +#warning CLOCK_ERROR_PROCENTAGE value in lmic_config.h is too high; values > 7 will cause side effects +#endif + osjob_t sendjob; QueueHandle_t LoraSendQueue;