Skip to content

Commit

Permalink
Clean up messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gloomyandy committed Apr 13, 2024
1 parent 7efd03c commit 1284b4b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Networking/ESP8266WiFi/WifiFirmwareUploader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,17 +684,18 @@ void WifiFirmwareUploader::Spin() noexcept
{
// Successful connection
Identify();
MessageF("success, found %s\n", ESP_NAMES[espType]);
#if STM32
if (uploadFile == nullptr)
{
MessageF("WiFi Module found: %s\n", ESP_NAMES[espType]);
// we are just trying to identify the module type
NetworkModule = (espType == ESP8266 ? NetworkModuleType::esp8266 : NetworkModuleType::esp32);
uploadResult = EspUploadResult::success;
state = UploadState::done;
break;
}
#endif
MessageF("success, found %s\n", ESP_NAMES[espType]);
if (espType == ESPType::ESP8266)
{
state = UploadState::erasing1;
Expand Down Expand Up @@ -904,8 +905,6 @@ void WifiFirmwareUploader::DetectWiFiModuleType() noexcept
// nothing to do
return;
}
delay(100);
MessageF("Attempting to detect WiFi module type\n");
uploadFile = nullptr;
fileSize = 0;
interface.Stop();
Expand Down

0 comments on commit 1284b4b

Please sign in to comment.