mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-03 04:15:53 +00:00
intermediate work
This commit is contained in:
parent
35bcb5297a
commit
f7dcef39ce
@ -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++;
|
||||||
|
@ -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>
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
@ -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;
|
Loading…
Reference in New Issue
Block a user