mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2025-12-18 23:27:44 +03:00
If server is running, call handleClient
This commit is contained in:
parent
5d935e6719
commit
421c5cd30b
@ -17,6 +17,7 @@
|
||||
#include "Battery.h"
|
||||
#include "CrossPointSettings.h"
|
||||
#include "CrossPointState.h"
|
||||
#include "CrossPointWebServer.h"
|
||||
#include "activities/boot_sleep/BootActivity.h"
|
||||
#include "activities/boot_sleep/SleepActivity.h"
|
||||
#include "activities/home/HomeActivity.h"
|
||||
@ -234,4 +235,9 @@ void loop() {
|
||||
if (currentActivity) {
|
||||
currentActivity->loop();
|
||||
}
|
||||
|
||||
// Handle web server requests if running
|
||||
if (crossPointWebServer.isRunning()) {
|
||||
crossPointWebServer.handleClient();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user