Fix build errors: add missing includes and forward declarations
Added Adafruit_NeoPixel.h and ESPAsyncWebServer.h includes that were implicitly resolved in OUI Spy but needed explicitly in standalone build. Added forward declarations for fyGPSIsFresh() and fyAddDetection() so the WiFi promiscuous callback can reference them before their definitions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
eb20c3ea54
commit
a6c6ab0456
1 changed files with 10 additions and 2 deletions
12
src/main.cpp
12
src/main.cpp
|
|
@ -37,6 +37,8 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "esp_wifi.h"
|
#include "esp_wifi.h"
|
||||||
#include <TinyGPS++.h>
|
#include <TinyGPS++.h>
|
||||||
|
#include <Adafruit_NeoPixel.h>
|
||||||
|
#include <ESPAsyncWebServer.h>
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// CONFIGURATION
|
// CONFIGURATION
|
||||||
|
|
@ -395,6 +397,12 @@ static bool checkWiFiMACPrefix(const uint8_t* mac) {
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// WIFI PROMISCUOUS CALLBACK
|
// WIFI PROMISCUOUS CALLBACK
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
// Forward declarations for functions called by WiFi promiscuous callback
|
||||||
|
static bool fyGPSIsFresh();
|
||||||
|
static int fyAddDetection(const char* mac, const char* name, int rssi,
|
||||||
|
const char* method, bool isRaven = false,
|
||||||
|
const char* ravenFW = "");
|
||||||
|
|
||||||
// Called by the WiFi driver for every frame on the AP's channel.
|
// Called by the WiFi driver for every frame on the AP's channel.
|
||||||
// Probe requests from devices scanning (on ANY channel) are caught because
|
// Probe requests from devices scanning (on ANY channel) are caught because
|
||||||
// WiFi devices sweep all channels when probing. Beacons only on AP channel.
|
// WiFi devices sweep all channels when probing. Beacons only on AP channel.
|
||||||
|
|
@ -589,8 +597,8 @@ static void fyProcessHardwareGPS() {
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|
||||||
static int fyAddDetection(const char* mac, const char* name, int rssi,
|
static int fyAddDetection(const char* mac, const char* name, int rssi,
|
||||||
const char* method, bool isRaven = false,
|
const char* method, bool isRaven,
|
||||||
const char* ravenFW = "") {
|
const char* ravenFW) {
|
||||||
if (!fyMutex || xSemaphoreTake(fyMutex, pdMS_TO_TICKS(100)) != pdTRUE) return -1;
|
if (!fyMutex || xSemaphoreTake(fyMutex, pdMS_TO_TICKS(100)) != pdTRUE) return -1;
|
||||||
|
|
||||||
// Update existing by MAC
|
// Update existing by MAC
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue