lmic event msg display optimizations

This commit is contained in:
Verkehrsrot committed 2019-10-12 14:07:55 +02:00
1 parent b2300d0c23
commit 7e5d053ec5
7 files changed
+37 -29

No files matched your search

+6 -3
View File
@@ -41,6 +41,9 @@
#define BLE_MODE (0x40)
#define SCREEN_MODE (0x80)
// length of display buffer for lmic event messages
#define LMIC_EVENTMSG_LEN 17
// I2C bus access control
#define I2C_MUTEX_LOCK() \
(xSemaphoreTake(I2Caccess, pdMS_TO_TICKS(10)) == pdTRUE)
@@ -104,9 +107,9 @@ extern std::set<uint16_t, std::less<uint16_t>, Mallocator<uint16_t>> macs;
extern std::array<uint64_t, 0xff>::iterator it;
extern std::array<uint64_t, 0xff> beacons;
extern configData_t cfg; // current device configuration
extern char lmic_event_msg[]; // display buffer
extern uint8_t volatile channel; // wifi channel rotation counter
extern configData_t cfg; // current device configuration
extern char lmic_event_msg[LMIC_EVENTMSG_LEN]; // display buffer
extern uint8_t volatile channel; // wifi channel rotation counter
extern uint16_t volatile macs_total, macs_wifi, macs_ble,
batt_voltage; // display values
extern bool volatile TimePulseTick; // 1sec pps flag set by GPS or RTC
-1
View File
@@ -20,7 +20,6 @@
#include <Wire.h>
#endif
extern QueueHandle_t LoraSendQueue;
extern TaskHandle_t lmicTask, lorasendTask;
// table of LORAWAN MAC commands