mirror of
https://github.com/Crocmagnon/buzzer.git
synced 2024-12-26 16:01:49 +01:00
Fix AP mode
This commit is contained in:
parent
8d2e275b2a
commit
819f3e3625
3 changed files with 5 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
// Uncomment to switch to AP mode.
|
||||
// Leave commented for wifi station mode.
|
||||
// #define B_WIFI_AP
|
||||
#define B_WIFI_AP
|
||||
|
||||
// DAC
|
||||
#define I2S_DOUT 32
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// Copy to creds.h or creds_ap.h and edit
|
||||
// If both, use different define guards
|
||||
#ifndef __CREDS_H__
|
||||
#define __CREDS_H__
|
||||
const char *ssid = "buzzer";
|
||||
|
|
|
@ -3,13 +3,15 @@
|
|||
#include <AsyncElegantOTA.h>
|
||||
#include <Audio.h>
|
||||
|
||||
// config.h must come before creds loading
|
||||
// because it sets B_WIFI_AP
|
||||
#include "config.h"
|
||||
#ifdef B_WIFI_AP
|
||||
#include "creds_ap.h"
|
||||
#else
|
||||
#include "creds.h"
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
#include "utils.h"
|
||||
#include "webHandlers.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue