mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-05 15:17:37 +03:00
clang baby
This commit is contained in:
parent
4fecafc890
commit
6316c4346a
@ -43,8 +43,8 @@ void CalibreConnectActivity::onEnter() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (WiFi.status() != WL_CONNECTED) {
|
if (WiFi.status() != WL_CONNECTED) {
|
||||||
enterNewActivity(new WifiSelectionActivity(
|
enterNewActivity(new WifiSelectionActivity(renderer, mappedInput,
|
||||||
renderer, mappedInput, [this](const bool connected) { onWifiSelectionComplete(connected); }));
|
[this](const bool connected) { onWifiSelectionComplete(connected); }));
|
||||||
} else {
|
} else {
|
||||||
connectedIP = WiFi.localIP().toString().c_str();
|
connectedIP = WiFi.localIP().toString().c_str();
|
||||||
connectedSSID = WiFi.SSID().c_str();
|
connectedSSID = WiFi.SSID().c_str();
|
||||||
|
|||||||
@ -197,7 +197,6 @@ void CrossPointWebServerActivity::onWifiSelectionComplete(const bool connected)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CrossPointWebServerActivity::startAccessPoint() {
|
void CrossPointWebServerActivity::startAccessPoint() {
|
||||||
Serial.printf("[%lu] [WEBACT] Starting Access Point mode...\n", millis());
|
Serial.printf("[%lu] [WEBACT] Starting Access Point mode...\n", millis());
|
||||||
Serial.printf("[%lu] [WEBACT] [MEM] Free heap before AP start: %d bytes\n", millis(), ESP.getFreeHeap());
|
Serial.printf("[%lu] [WEBACT] [MEM] Free heap before AP start: %d bytes\n", millis(), ESP.getFreeHeap());
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
#include "CalibreSettingsActivity.h"
|
#include "CalibreSettingsActivity.h"
|
||||||
|
|
||||||
#include <GfxRenderer.h>
|
#include <GfxRenderer.h>
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
#include "CrossPointSettings.h"
|
#include "CrossPointSettings.h"
|
||||||
|
|||||||
@ -115,7 +115,8 @@ void CrossPointWebServer::begin() {
|
|||||||
Serial.printf("[%lu] [WEB] WebSocket server started\n", millis());
|
Serial.printf("[%lu] [WEB] WebSocket server started\n", millis());
|
||||||
|
|
||||||
udpActive = udp.begin(LOCAL_UDP_PORT);
|
udpActive = udp.begin(LOCAL_UDP_PORT);
|
||||||
Serial.printf("[%lu] [WEB] Discovery UDP %s on port %d\n", millis(), udpActive ? "enabled" : "failed", LOCAL_UDP_PORT);
|
Serial.printf("[%lu] [WEB] Discovery UDP %s on port %d\n", millis(), udpActive ? "enabled" : "failed",
|
||||||
|
LOCAL_UDP_PORT);
|
||||||
|
|
||||||
running = true;
|
running = true;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user