We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9b66ef commit 08897d4Copy full SHA for 08897d4
1 file changed
src/CaptivePortal.cpp
@@ -4,7 +4,7 @@
4
5
const char* const TAG = "CaptivePortal";
6
7
-#include "CaptivePortalConfig.h"
+#include "config/CaptivePortalConfig.h"
8
#include "CaptivePortalInstance.h"
9
#include "CommandHandler.h"
10
#include "config/Config.h"
@@ -156,10 +156,9 @@ bool CaptivePortal::Init()
156
void CaptivePortal::SetAlwaysEnabled(bool alwaysEnabled)
157
{
158
s_alwaysEnabled = alwaysEnabled;
159
- CaptivePortalConfig config = {
160
- .alwaysEnabled = alwaysEnabled,
161
- };
162
- Config::SetCaptivePortalConfig(config);
+ Config::SetCaptivePortalConfig(Config::CaptivePortalConfig(
+ alwaysEnabled
+ ));
163
}
164
bool CaptivePortal::IsAlwaysEnabled()
165
0 commit comments