Skip to content

Commit

Permalink
Merge pull request #123 from Spooks4576/Development
Browse files Browse the repository at this point in the history
fixes
  • Loading branch information
jaylikesbunda authored Dec 20, 2024
2 parents dfab7fb + 90b0c59 commit 3f00cf9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions main/core/callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,11 @@ void wifi_wps_detection_callback(void *buf, wifi_promiscuous_pkt_type_t type) {
}
}

// Forward declare the callback function
#ifndef CONFIG_IDF_TARGET_ESP32S2
// Forward declare the struct and callback before use
struct ble_hs_adv_field;
static int ble_hs_adv_parse_fields_cb(const struct ble_hs_adv_field *field, void *arg);

#ifndef CONFIG_IDF_TARGET_ESP32S2
void ble_wardriving_callback(struct ble_gap_event *event, void *arg) {
if (!event || event->type != BLE_GAP_EVENT_DISC) {
return;
Expand Down Expand Up @@ -445,8 +446,8 @@ void ble_wardriving_callback(struct ble_gap_event *event, void *arg) {
ESP_LOGD("BLE_WD", "Skipped logging entry - GPS data not ready");
}
}
#endif

// Move the callback implementation inside the ESP32S2 guard
static int ble_hs_adv_parse_fields_cb(const struct ble_hs_adv_field *field, void *arg) {
wardriving_data_t *data = (wardriving_data_t *)arg;

Expand All @@ -458,10 +459,11 @@ static int ble_hs_adv_parse_fields_cb(const struct ble_hs_adv_field *field, void

return 0;
}
#endif

static const char *SKIMMER_TAG = "SKIMMER_DETECT";

// List of suspicious device names commonly used in skimmers
// suspicious device names commonly used in skimmers
static const char *suspicious_names[] = {
"HC-03", "HC-05", "HC-06", "HC-08",
"BT-HC05", "JDY-31", "AT-09", "HM-10",
Expand Down

0 comments on commit 3f00cf9

Please sign in to comment.