Restored functinality to disable WIFI AP mode with at runtime with a setting.

Restored ifdefs for double battery and charger.
This commit is contained in:
Paul Brand 2024-08-27 14:29:48 +02:00
parent ce93284b51
commit 573658e573
4 changed files with 14 additions and 20 deletions

View file

@ -23,9 +23,7 @@ extern std::string ssid;
extern std::string password;
extern const uint8_t wifi_channel;
extern const char* ssidAP;
#ifdef WIFI_AP
extern const char* passwordAP;
#endif
// Common charger parameters
extern float charger_stat_HVcur;
@ -56,7 +54,7 @@ void init_webserver();
*/
void wifi_monitor();
#ifdef WIFI_AP
#ifdef WIFIAP
/**
* @brief Initialization function that creates a WiFi Access Point.
*
@ -65,7 +63,7 @@ void wifi_monitor();
* @return void
*/
void init_WiFi_AP();
#endif
#endif // WIFIAP
/**
* @brief Initialization function that connects to an existing network.