Skip to content

Commit

Permalink
Fix ESP32 crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
cziter15 committed Jun 17, 2024
1 parent 28fc323 commit 2f65caa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/ksf/comp/ksWifiConfigurator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ namespace ksf::comps

bool ksWifiConfigurator::init(ksApplication* app)
{
WiFi.softAPdisconnect();
WiFi.softAP(deviceName.c_str());
app->addComponent<ksDevicePortal>();

Expand Down Expand Up @@ -81,6 +82,6 @@ namespace ksf::comps

ksWifiConfigurator::~ksWifiConfigurator()
{
WiFi.enableAP(false);
WiFi.softAPdisconnect(true);
}
}
2 changes: 1 addition & 1 deletion src/ksf/comp/ksWifiConnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,6 @@ namespace ksf::comps

ksWifiConnector::~ksWifiConnector()
{
WiFi.disconnect(true, false);
WiFi.disconnect(true);
}
}

0 comments on commit 2f65caa

Please sign in to comment.