Skip to content

Commit

Permalink
Implement Single Responsibility Principle
Browse files Browse the repository at this point in the history
  • Loading branch information
hhvrc committed Oct 5, 2023
1 parent 311f2be commit d5078d9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/WiFiScanManager.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include "WiFiScanManager.h"

#include "CaptivePortal.h"

#include <WiFi.h>

#include <esp_log.h>
Expand Down Expand Up @@ -51,7 +49,6 @@ void _handleScanError(std::int16_t retval) {

if (retval == WIFI_SCAN_FAILED) {
ESP_LOGE(TAG, "Failed to start scan on channel %u", s_currentChannel);
CaptivePortal::Start();
for (auto& it : s_scanCompletedHandlers) {
it.second(WiFiScanManager::ScanCompletedStatus::Error);
}
Expand Down Expand Up @@ -197,5 +194,5 @@ void _evScanCompleted(arduino_event_id_t event, arduino_event_info_t info) {
}
void _evSTAStopped(arduino_event_id_t event, arduino_event_info_t info) {
ESP_LOGD(TAG, "STA stopped");
// TODO: CLEAR RESULTS
_setScanInProgress(false);
}

0 comments on commit d5078d9

Please sign in to comment.