mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-12 07:40:58 -08:00
Fix for non bluetooth hardware
This commit is contained in:
@@ -1835,12 +1835,14 @@ bool WiFiScan::mac_cmp(struct mac_addr addr1, struct mac_addr addr2) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void WiFiScan::copyNimbleMac(const BLEAddress &addr, unsigned char out[6]) {
|
||||
const uint8_t* bytes = addr.getNative(); // NimBLE gives MAC as uint8_t[6]
|
||||
for (int i = 0; i < 6; i++) {
|
||||
out[i] = bytes[i];
|
||||
}
|
||||
}
|
||||
#ifdef HAS_BT
|
||||
void WiFiScan::copyNimbleMac(const BLEAddress &addr, unsigned char out[6]) {
|
||||
const uint8_t* bytes = addr.getNative(); // NimBLE gives MAC as uint8_t[6]
|
||||
for (int i = 0; i < 6; i++) {
|
||||
out[i] = bytes[i];
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
bool WiFiScan::seen_mac(unsigned char* mac) {
|
||||
//Return true if this MAC address is in the recently seen array.
|
||||
|
||||
@@ -721,7 +721,9 @@ class WiFiScan
|
||||
#endif
|
||||
bool seen_mac(unsigned char* mac);
|
||||
void save_mac(unsigned char* mac);
|
||||
void copyNimbleMac(const BLEAddress &addr, unsigned char out[6]);
|
||||
#ifdef HAS_BT
|
||||
void copyNimbleMac(const BLEAddress &addr, unsigned char out[6]);
|
||||
#endif
|
||||
bool filterActive();
|
||||
bool RunGPSInfo(bool tracker = false, bool display = true, bool poi = false);
|
||||
void logPoint(String lat, String lon, float alt, String datetime, bool poi = false);
|
||||
|
||||
Reference in New Issue
Block a user