From a4fd57a8aa10b2dfa0b90b210a4d193f378012ab Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 22 Jul 2018 12:11:13 +0200 Subject: [PATCH] code sanitizations --- src/blecsan.cpp | 4 +--- src/macsniff.h | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/blecsan.cpp b/src/blecsan.cpp index 1c16d663..042d5f34 100644 --- a/src/blecsan.cpp +++ b/src/blecsan.cpp @@ -6,6 +6,7 @@ https://github.com/nkolban/esp32-snippets/tree/master/BLE/scanner // Basic Config #include "globals.h" +#include "macsniff.h" // Bluetooth specific includes #include @@ -19,9 +20,6 @@ https://github.com/nkolban/esp32-snippets/tree/master/BLE/scanner // local Tag for logging static const char TAG[] = "bluetooth"; -// defined in macsniff.cpp -bool mac_add(uint8_t *paddr, int8_t rssi, bool sniff_type); - const char *bt_addr_t_to_string(esp_ble_addr_type_t type) { switch (type) { case BLE_ADDR_TYPE_PUBLIC: diff --git a/src/macsniff.h b/src/macsniff.h index ee2d7e7b..22992f09 100644 --- a/src/macsniff.h +++ b/src/macsniff.h @@ -6,7 +6,6 @@ // Hash function for scrambling MAC addresses #include "hash.h" - #include "led.h" #define MAC_SNIFF_WIFI 0 @@ -31,8 +30,6 @@ uint16_t reset_salt(void); void wifi_sniffer_init(void); void wifi_sniffer_set_channel(uint8_t channel); void wifi_sniffer_packet_handler(void *buff, wifi_promiscuous_pkt_type_t type); - -// function defined in rokkithash.cpp -uint32_t rokkit(const char *, int); +bool mac_add(uint8_t *paddr, int8_t rssi, bool sniff_type); #endif \ No newline at end of file