mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-06 23:57:39 +03:00
Fix clang-format alignment issues in WiFi optimization code
Adjusted spacing before inline comments to match clang-format-21 requirements: - src/activities/network/CrossPointWebServerActivity.cpp:152-153, 196-197 - src/network/CrossPointWebServer.h:41 This resolves the CI build failure from commit 104feef.
This commit is contained in:
parent
6fc178de2e
commit
044e4a2c61
@ -149,8 +149,8 @@ void CrossPointWebServerActivity::onNetworkModeSelected(const NetworkMode mode)
|
|||||||
updateRequired = true;
|
updateRequired = true;
|
||||||
|
|
||||||
// WiFi performance optimizations for AP mode
|
// WiFi performance optimizations for AP mode
|
||||||
WiFi.setSleep(false); // Disable WiFi sleep
|
WiFi.setSleep(false); // Disable WiFi sleep
|
||||||
WiFi.setTxPower(WIFI_POWER_19_5dBm); // Maximum TX power for ESP32-C3
|
WiFi.setTxPower(WIFI_POWER_19_5dBm); // Maximum TX power for ESP32-C3
|
||||||
|
|
||||||
startAccessPoint();
|
startAccessPoint();
|
||||||
}
|
}
|
||||||
@ -193,8 +193,8 @@ void CrossPointWebServerActivity::startAccessPoint() {
|
|||||||
delay(100);
|
delay(100);
|
||||||
|
|
||||||
// WiFi performance optimizations for maximum throughput
|
// WiFi performance optimizations for maximum throughput
|
||||||
WiFi.setSleep(false); // Disable WiFi sleep
|
WiFi.setSleep(false); // Disable WiFi sleep
|
||||||
WiFi.setTxPower(WIFI_POWER_19_5dBm); // Maximum TX power for ESP32-C3
|
WiFi.setTxPower(WIFI_POWER_19_5dBm); // Maximum TX power for ESP32-C3
|
||||||
|
|
||||||
Serial.printf("[%lu] [WEBACT] WiFi optimizations applied (sleep disabled, max TX power)\n", millis());
|
Serial.printf("[%lu] [WEBACT] WiFi optimizations applied (sleep disabled, max TX power)\n", millis());
|
||||||
|
|
||||||
|
|||||||
@ -38,7 +38,7 @@ class CrossPointWebServer {
|
|||||||
std::unique_ptr<WebServer> server = nullptr;
|
std::unique_ptr<WebServer> server = nullptr;
|
||||||
std::atomic<bool> running{false};
|
std::atomic<bool> running{false};
|
||||||
mutable std::mutex serverMutex; // Protects server pointer access
|
mutable std::mutex serverMutex; // Protects server pointer access
|
||||||
bool apMode = false; // true when running in AP mode, false for STA mode
|
bool apMode = false; // true when running in AP mode, false for STA mode
|
||||||
uint16_t port = 80;
|
uint16_t port = 80;
|
||||||
|
|
||||||
// Upload state (instance variables with mutex protection)
|
// Upload state (instance variables with mutex protection)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user