This commit is contained in:
Klaus K Wilting committed 2018-07-25 00:17:31 +02:00
1 parent 5ae8f47b9d
commit 34ac6b45d0
4 files changed
+13 -16

No files matched your search

+1 -3
View File
@@ -1,5 +1,3 @@
std::array<uint32_t, 5>::iterator it;
std::array<uint32_t, 5> beacons = {0x000000000000, 0x111111111111,
0x123456789000, 0xaaaaaaaaaaaa,
0x0101010101010};
std::array<uint32_t, 5> beacons = {0,0,0,0,0};
+4 -5
View File
@@ -10,7 +10,9 @@ static const char TAG[] = "main";
// do all housekeeping
void doHomework() {
static uint64_t uptimecounter;
// update uptime counter
uptime();
// read battery voltage into global variable
#ifdef HAS_BATTERY_PROBE
@@ -39,10 +41,7 @@ void doHomework() {
reset_counters(); // clear macs container and reset all counters
reset_salt(); // get new salt for salting hashes
}
// update uptime counter
uptimecounter = uptime();
}
} // doHomework()
void checkHousekeeping() {
if (HomeCycleIRQ) {
+1 -1
View File
@@ -60,7 +60,7 @@
// Some hardware settings
#define RGBLUMINOSITY 30 // RGB LED luminosity [default = 30%]
#define DISPLAYREFRESH_MS 40 // OLED refresh cycle in ms [default = 40] -> 1000/40 = 25 frames per second
#define HOMECYCLE 60 // house keeping cycle in seconds [default = 60 secs]
#define HOMECYCLE 30 // house keeping cycle in seconds [default = 30 secs]
// LMIC settings
// define hardware independent LMIC settings here, settings of standard library in /lmic/config.h will be ignored