Skip to content

Commit 08897d4

Browse files
authored
fix captiveportal include path and config struct construction
1 parent a9b66ef commit 08897d4

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/CaptivePortal.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
const char* const TAG = "CaptivePortal";
66

7-
#include "CaptivePortalConfig.h"
7+
#include "config/CaptivePortalConfig.h"
88
#include "CaptivePortalInstance.h"
99
#include "CommandHandler.h"
1010
#include "config/Config.h"
@@ -156,10 +156,9 @@ bool CaptivePortal::Init()
156156
void CaptivePortal::SetAlwaysEnabled(bool alwaysEnabled)
157157
{
158158
s_alwaysEnabled = alwaysEnabled;
159-
CaptivePortalConfig config = {
160-
.alwaysEnabled = alwaysEnabled,
161-
};
162-
Config::SetCaptivePortalConfig(config);
159+
Config::SetCaptivePortalConfig(Config::CaptivePortalConfig(
160+
alwaysEnabled
161+
));
163162
}
164163
bool CaptivePortal::IsAlwaysEnabled()
165164
{

0 commit comments

Comments
 (0)