Update display.cpp

added: CWA-handling
This commit is contained in:
August Quint authored and GitHub committed 2020-09-01 12:01:00 +02:00
1 parent 1f388d6430
commit 98302a9530
1 file changed
+11 -3
+11 -3
View File
@@ -265,7 +265,12 @@ void dp_drawPage(time_t t, bool nextpage) {
else else
dp_printf("WIFI:off"); dp_printf("WIFI:off");
if (cfg.blescan) if (cfg.blescan)
dp_printf(" BLTH:%-5d", macs_ble); #if !(COUNT_CWA)
dp_printf("BLTH:%-5d", macs_ble);
#else
dp_printf("BLTH:%-5d", macs_ble);
dp_printf("(CWA:%d)", cwa_report());
#endif
else else
dp_printf(" BLTH:off"); dp_printf(" BLTH:off");
#elif ((WIFICOUNTER) && (!BLECOUNTER)) #elif ((WIFICOUNTER) && (!BLECOUNTER))
@@ -274,9 +279,12 @@ void dp_drawPage(time_t t, bool nextpage) {
else else
dp_printf("WIFI:off"); dp_printf("WIFI:off");
#elif ((!WIFICOUNTER) && (BLECOUNTER)) #elif ((!WIFICOUNTER) && (BLECOUNTER))
if (cfg.blescan) if (cfg.blescan) {
dp_printf("BLTH:%-5d", macs_ble); dp_printf("BLTH:%-5d", macs_ble);
else #if (COUNT_CWA)
dp_printf("(CWA:%d)", cwa_report());
#endif
} else
dp_printf("BLTH:off"); dp_printf("BLTH:off");
#else #else
dp_printf("Sniffer disabled"); dp_printf("Sniffer disabled");