mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2026-01-02 06:40:10 +01:00
Merge branch 'develop' into dj1an-dev-sf
This commit is contained in:
commit
e6d5ebfbe9
|
|
@ -42,6 +42,11 @@ void Display::setDisplaySaveTimeout(uint32_t timeout) {
|
|||
_displaySaveModeTimer.setTimeout(timeout * 1000);
|
||||
}
|
||||
|
||||
void Display::activateDistplay()
|
||||
{
|
||||
_disp->displayOn();
|
||||
}
|
||||
|
||||
void Display::update() {
|
||||
if (_displayFrameRate.check()) {
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@ public:
|
|||
void activateDisplaySaveMode();
|
||||
void setDisplaySaveTimeout(uint32_t timeout);
|
||||
|
||||
void activateDistplay();
|
||||
|
||||
// functions for update loop
|
||||
void update();
|
||||
void addFrame(std::shared_ptr<DisplayFrame> frame);
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ void TaskManager::addAlwaysRunTask(Task *task) {
|
|||
}
|
||||
|
||||
std::list<Task *> TaskManager::getTasks() {
|
||||
return _tasks;
|
||||
std::list<Task *> tasks = _alwaysRunTasks;
|
||||
std::copy(_tasks.begin(), _tasks.end(), std::back_inserter(tasks));
|
||||
return tasks;
|
||||
}
|
||||
|
||||
bool TaskManager::setup(System &system) {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
#include "TaskWifi.h"
|
||||
#include "project_configuration.h"
|
||||
|
||||
#define VERSION "21.35.0"
|
||||
#define VERSION "21.35.0-dev"
|
||||
|
||||
String create_lat_aprs(double lat);
|
||||
String create_long_aprs(double lng);
|
||||
|
|
|
|||
|
|
@ -25,6 +25,9 @@ bool DisplayTask::setup(System &system) {
|
|||
}
|
||||
|
||||
bool DisplayTask::loop(System &system) {
|
||||
if (system.getUserConfig()->display.overwritePin != 0 && !digitalRead(system.getUserConfig()->display.overwritePin)) {
|
||||
system.getDisplay().activateDistplay();
|
||||
}
|
||||
system.getDisplay().update();
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue