Fix AP mode

This commit is contained in:
Gabriel Augendre 2023-03-20 10:37:45 +01:00
parent 8d2e275b2a
commit 819f3e3625
3 changed files with 5 additions and 2 deletions

View file

@ -3,7 +3,7 @@
// Uncomment to switch to AP mode. // Uncomment to switch to AP mode.
// Leave commented for wifi station mode. // Leave commented for wifi station mode.
// #define B_WIFI_AP #define B_WIFI_AP
// DAC // DAC
#define I2S_DOUT 32 #define I2S_DOUT 32

View file

@ -1,4 +1,5 @@
// Copy to creds.h or creds_ap.h and edit // Copy to creds.h or creds_ap.h and edit
// If both, use different define guards
#ifndef __CREDS_H__ #ifndef __CREDS_H__
#define __CREDS_H__ #define __CREDS_H__
const char *ssid = "buzzer"; const char *ssid = "buzzer";

View file

@ -3,13 +3,15 @@
#include <AsyncElegantOTA.h> #include <AsyncElegantOTA.h>
#include <Audio.h> #include <Audio.h>
// config.h must come before creds loading
// because it sets B_WIFI_AP
#include "config.h"
#ifdef B_WIFI_AP #ifdef B_WIFI_AP
#include "creds_ap.h" #include "creds_ap.h"
#else #else
#include "creds.h" #include "creds.h"
#endif #endif
#include "config.h"
#include "utils.h" #include "utils.h"
#include "webHandlers.h" #include "webHandlers.h"