fix #issue668

This commit is contained in:
Klaus K Wilting 2020-11-01 13:45:17 +01:00
parent 44758161dc
commit 8a0a3949fd
5 changed files with 23 additions and 9 deletions

View File

@ -4,6 +4,10 @@
#include "cyclic.h"
#include "qrcode.h"
#if (COUNT_ENS)
#include "corona.h"
#endif
#if (HAS_DISPLAY) == 1
#include <OneBitDisplay.h>
#elif (HAS_DISPLAY) == 2

View File

@ -10,6 +10,10 @@
#include "cyclic.h"
#include "led.h"
#if (COUNT_ENS)
#include "corona.h"
#endif
#define MAC_SNIFF_WIFI 0
#define MAC_SNIFF_BLE 1
#define MAC_SNIFF_BLE_CWA 2

View File

@ -8,7 +8,10 @@
#include "lorawan.h"
#include "display.h"
#include "sdcard.h"
#if (COUNT_ENS)
#include "corona.h"
#endif
extern Ticker sendTimer;

View File

@ -265,11 +265,13 @@ void dp_drawPage(time_t t, bool nextpage) {
else
dp_printf("WIFI:off");
if (cfg.blescan)
if (!cfg.enscount)
dp_printf("BLTH:%-5d", macs_ble);
else
#if (COUNT_ENS)
if (cfg.enscount)
dp_printf(" CWA:%-5d", cwa_report());
else
#endif
dp_printf("BLTH:%-5d", macs_ble);
else
dp_printf(" BLTH:off");
#elif ((WIFICOUNTER) && (!BLECOUNTER))
if (cfg.wifiscan)
@ -277,11 +279,13 @@ void dp_drawPage(time_t t, bool nextpage) {
else
dp_printf("WIFI:off");
#elif ((!WIFICOUNTER) && (BLECOUNTER))
if (cfg.blescan) {
if (cfg.blescan)
dp_printf("BLTH:%-5d", macs_ble);
#if (COUNT_ENS)
if (cfg.enscount)
dp_printf("(CWA:%d)", cwa_report());
} else
else
#endif
dp_printf("BLTH:off");
#else
dp_printf("Sniffer disabled");

View File

@ -6,7 +6,6 @@
#include "payload.h"
#include "corona.h"
#include "macsniff.h"
extern PayloadConvert payload;
#endif