From cb67e368ba63a0200bbc46f71a98ec8fb78a19a2 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Fri, 27 Sep 2019 12:41:14 +0200 Subject: [PATCH] add countermode to paxcounter.conf --- src/configmanager.cpp | 2 +- src/paxcounter.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/configmanager.cpp b/src/configmanager.cpp index 5b235f70..c629d617 100644 --- a/src/configmanager.cpp +++ b/src/configmanager.cpp @@ -20,7 +20,7 @@ void defaultConfig() { cfg.adrmode = 1; // 0=disabled, 1=enabled cfg.screensaver = 0; // 0=disabled, 1=enabled cfg.screenon = 1; // 0=disabled, 1=enabled - cfg.countermode = 0; // 0=cyclic, 1=cumulative, 2=cyclic confirmed + cfg.countermode = COUNTERMODE; // 0=cyclic, 1=cumulative, 2=cyclic confirmed cfg.rssilimit = 0; // threshold for rssilimiter, negative value! cfg.sendcycle = SENDCYCLE; // payload send cycle [seconds/2] cfg.wifichancycle = diff --git a/src/paxcounter.conf b/src/paxcounter.conf index 40852f59..38feccc3 100644 --- a/src/paxcounter.conf +++ b/src/paxcounter.conf @@ -14,6 +14,7 @@ // Payload send cycle and encoding #define SENDCYCLE 30 // payload send cycle [seconds/2], 0 .. 255 #define PAYLOAD_ENCODER 2 // payload encoder: 1=Plain, 2=Packed, 3=Cayenne LPP dynamic, 4=Cayenne LPP packed +#define COUNTERMODE 0 // 0=cyclic, 1=cumulative, 2=cyclic confirmed // Set this to include BLE counting and vendor filter functions, or to switch off WIFI counting #define VENDORFILTER 1 // set to 0 if you want to count things, not people