intermediate work

This commit is contained in:
Jm 2021-01-05 23:21:14 -08:00
parent 35bcb5297a
commit f7dcef39ce
4 changed files with 6 additions and 8 deletions

View File

@ -97,7 +97,7 @@ AirTime::AirTime() : concurrency::OSThread("AirTime") {}
int32_t AirTime::runOnce() int32_t AirTime::runOnce()
{ {
// DEBUG_MSG("AirTime::runOnce()\n"); //DEBUG_MSG("AirTime::runOnce()\n");
airtimeRotatePeriod(); airtimeRotatePeriod();
secSinceBoot++; secSinceBoot++;

View File

@ -21,7 +21,7 @@
#include "main.h" #include "main.h"
#include "meshwifi/meshhttp.h" #include "meshwifi/meshhttp.h"
#include "meshwifi/meshwifi.h" #include "meshwifi/meshwifi.h"
#include "meshwifi/WebServerThread.h" #include "mesh/wifi/WebServerThread.h"
#include "sleep.h" #include "sleep.h"
#include "target_specific.h" #include "target_specific.h"
#include <OneButton.h> #include <OneButton.h>

View File

@ -1,7 +1,6 @@
#include "meshwifi/WebServerThread.h" #include "mesh/wifi/WebServerThread.h"
#include <Arduino.h> #include <Arduino.h>
// Thread for the HTTP Server
WebServerThread webServerThread; WebServerThread webServerThread;
WebServerThread::WebServerThread() : concurrency::OSThread("WebServerThread") {} WebServerThread::WebServerThread() : concurrency::OSThread("WebServerThread") {}
@ -12,3 +11,4 @@ int32_t WebServerThread::runOnce()
return (1000 * 1); return (1000 * 1);
} }

View File

@ -1,10 +1,9 @@
#pragma once #pragma once
#include "concurrency/OSThread.h" #include "concurrency/OSThread.h"
#include "concurrency/Periodic.h" #include "configuration.h"
#include <Arduino.h> #include <Arduino.h>
#include <functional> #include <functional>
#include "configuration.h"
class WebServerThread : private concurrency::OSThread class WebServerThread : private concurrency::OSThread
@ -13,10 +12,9 @@ class WebServerThread : private concurrency::OSThread
public: public:
WebServerThread(); WebServerThread();
protected: protected:
virtual int32_t runOnce(); virtual int32_t runOnce();
}; };
extern WebServerThread webServerThread; extern WebServerThread webServerThread;