diff --git a/lora-asset-tracker-rx/lora-asset-tracker-rx.ino b/lora-asset-tracker-rx/lora-asset-tracker-rx.ino index f966298..86ebaaa 100644 --- a/lora-asset-tracker-rx/lora-asset-tracker-rx.ino +++ b/lora-asset-tracker-rx/lora-asset-tracker-rx.ino @@ -556,7 +556,7 @@ float readBatt() { value = value / 3.0f; value = (value * 3.3) / 1024.0f; value = value / (R2/(R1+R2)); - } while (value > 10.0); + } while (value > 20.0); return value ; } diff --git a/lora-asset-tracker-tx/lora-asset-tracker-tx.ino b/lora-asset-tracker-tx/lora-asset-tracker-tx.ino index b1e1153..dd8f16f 100644 --- a/lora-asset-tracker-tx/lora-asset-tracker-tx.ino +++ b/lora-asset-tracker-tx/lora-asset-tracker-tx.ino @@ -633,7 +633,7 @@ float readBatt() { value = value / 3.0f; value = (value * 3.3) / 1024.0f; value = value / (R2/(R1+R2)); - } while (value > 10.0); + } while (value > 20.0); return value ; } diff --git a/lorawan-otaa-asset-tracker/lorawan-otaa-asset-tracker.ino b/lorawan-otaa-asset-tracker/lorawan-otaa-asset-tracker.ino index 235b08c..f3dc38b 100644 --- a/lorawan-otaa-asset-tracker/lorawan-otaa-asset-tracker.ino +++ b/lorawan-otaa-asset-tracker/lorawan-otaa-asset-tracker.ino @@ -718,7 +718,7 @@ float readBatt() { value = value / 3.0f; value = (value * 3.3) / 1024.0f; value = value / (R2/(R1+R2)); - } while (value > 16.0); + } while (value > 20.0); return value ; } diff --git a/lorawan-otaa-pico-balloon-tracker/lorawan-otaa-pico-balloon-tracker.ino b/lorawan-otaa-pico-balloon-tracker/lorawan-otaa-pico-balloon-tracker.ino index 237ab07..44e48e9 100644 --- a/lorawan-otaa-pico-balloon-tracker/lorawan-otaa-pico-balloon-tracker.ino +++ b/lorawan-otaa-pico-balloon-tracker/lorawan-otaa-pico-balloon-tracker.ino @@ -25,6 +25,8 @@ LIS3DH myIMU; //accelerometer //#define DEVMODE // Development mode. Uncomment to enable for debugging. +uint8_t measurementSystem = 0; //0 for metric (meters, km, Celcius, etc.), 1 for imperial (feet, mile, Fahrenheit,etc.) + //***************************** UPDATE HERE WITH YOUR DEVICE KEYS **************************************/ //You should copy device keys from Helium or TTN Console and update following keys. Please check out: https://github.com/lightaprs/LightTracker-1.0/wiki/Adding-Device-on-Helium-Console @@ -48,7 +50,6 @@ static const u1_t PROGMEM APPKEY[16] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 //************************** LoRaWAN Settings ******************** const unsigned TX_INTERVAL = 60000; // Schedule TX every this many miliseconds (might become longer due to duty cycle limitations). -uint8_t measurementSystem = 0; //0 for metric (meters, km, Celcius, etc.), 1 for imperial (feet, mile, Fahrenheit,etc.) //try to keep telemetry size smaller than 51 bytes if possible. Default telemetry size is 45 bytes. CayenneLPP telemetry(51); @@ -587,7 +588,7 @@ float readBatt() { value = value / 3.0f; value = (value * 3.3) / 1024.0f; value = value / (R2/(R1+R2)); - } while (value > 16.0); + } while (value > 20.0); return value ; }