mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-07 08:07:40 +03:00
style: Apply clang-format fixes
This commit is contained in:
parent
5160d16ea3
commit
fca0356be9
@ -79,10 +79,10 @@ void OpdsBookBrowserActivity::loop() {
|
|||||||
if (WiFi.status() == WL_CONNECTED && WiFi.localIP() != IPAddress(0, 0, 0, 0)) {
|
if (WiFi.status() == WL_CONNECTED && WiFi.localIP() != IPAddress(0, 0, 0, 0)) {
|
||||||
// WiFi connected - just retry fetching the feed
|
// WiFi connected - just retry fetching the feed
|
||||||
Serial.printf("[%lu] [OPDS] Retry: WiFi connected, retrying fetch\n", millis());
|
Serial.printf("[%lu] [OPDS] Retry: WiFi connected, retrying fetch\n", millis());
|
||||||
state = BrowserState::LOADING;
|
state = BrowserState::LOADING;
|
||||||
statusMessage = "Loading...";
|
statusMessage = "Loading...";
|
||||||
updateRequired = true;
|
updateRequired = true;
|
||||||
fetchFeed(currentPath);
|
fetchFeed(currentPath);
|
||||||
} else {
|
} else {
|
||||||
// WiFi not connected - launch WiFi selection
|
// WiFi not connected - launch WiFi selection
|
||||||
Serial.printf("[%lu] [OPDS] Retry: WiFi not connected, launching selection\n", millis());
|
Serial.printf("[%lu] [OPDS] Retry: WiFi not connected, launching selection\n", millis());
|
||||||
@ -382,9 +382,8 @@ void OpdsBookBrowserActivity::launchWifiSelection() {
|
|||||||
state = BrowserState::WIFI_SELECTION;
|
state = BrowserState::WIFI_SELECTION;
|
||||||
updateRequired = true;
|
updateRequired = true;
|
||||||
|
|
||||||
enterNewActivity(new WifiSelectionActivity(renderer, mappedInput, [this](const bool connected) {
|
enterNewActivity(new WifiSelectionActivity(renderer, mappedInput,
|
||||||
onWifiSelectionComplete(connected);
|
[this](const bool connected) { onWifiSelectionComplete(connected); }));
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OpdsBookBrowserActivity::onWifiSelectionComplete(const bool connected) {
|
void OpdsBookBrowserActivity::onWifiSelectionComplete(const bool connected) {
|
||||||
|
|||||||
@ -18,12 +18,12 @@
|
|||||||
class OpdsBookBrowserActivity final : public ActivityWithSubactivity {
|
class OpdsBookBrowserActivity final : public ActivityWithSubactivity {
|
||||||
public:
|
public:
|
||||||
enum class BrowserState {
|
enum class BrowserState {
|
||||||
CHECK_WIFI, // Checking WiFi connection
|
CHECK_WIFI, // Checking WiFi connection
|
||||||
WIFI_SELECTION, // WiFi selection subactivity is active
|
WIFI_SELECTION, // WiFi selection subactivity is active
|
||||||
LOADING, // Fetching OPDS feed
|
LOADING, // Fetching OPDS feed
|
||||||
BROWSING, // Displaying entries (navigation or books)
|
BROWSING, // Displaying entries (navigation or books)
|
||||||
DOWNLOADING, // Downloading selected EPUB
|
DOWNLOADING, // Downloading selected EPUB
|
||||||
ERROR // Error state with message
|
ERROR // Error state with message
|
||||||
};
|
};
|
||||||
|
|
||||||
explicit OpdsBookBrowserActivity(GfxRenderer& renderer, MappedInputManager& mappedInput,
|
explicit OpdsBookBrowserActivity(GfxRenderer& renderer, MappedInputManager& mappedInput,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user