mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2026-04-07 07:25:23 +00:00
cleanup TimeLib
This commit is contained in:
parent
1ba1bbc9e3
commit
f4bc68e710
9 changed files with 13 additions and 13 deletions
|
|
@ -4,7 +4,6 @@
|
|||
#include <BoardFinder.h>
|
||||
#include <System.h>
|
||||
#include <TaskManager.h>
|
||||
#include <TimeLib.h>
|
||||
#include <logger.h>
|
||||
#include <power_management.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
#include <TimeLib.h>
|
||||
#include <logger.h>
|
||||
|
||||
#include "Task.h"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
#include <TimeLib.h>
|
||||
#include <logger.h>
|
||||
|
||||
#include "TaskDisplay.h"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#include <TimeLib.h>
|
||||
#include <logger.h>
|
||||
|
||||
#include <TimeLib.h>
|
||||
|
||||
#include "Task.h"
|
||||
#include "TaskAprsIs.h"
|
||||
#include "TaskModem.h"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#include <TimeLib.h>
|
||||
#include <logger.h>
|
||||
|
||||
#include <TimeLib.h>
|
||||
|
||||
#include "Task.h"
|
||||
#include "TaskNTP.h"
|
||||
#include "project_configuration.h"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
#include <logger.h>
|
||||
|
||||
#include <TimeLib.h>
|
||||
|
||||
#include "Task.h"
|
||||
#include "TaskRouter.h"
|
||||
#include "project_configuration.h"
|
||||
|
|
@ -40,7 +42,7 @@ bool RouterTask::loop(System &system) {
|
|||
system.getDisplay().addFrame(std::shared_ptr<DisplayFrame>(new TextFrame("BEACON", _beaconMsg->toString())));
|
||||
_beacon_timer.start();
|
||||
}
|
||||
time_t diff = _beacon_timer.getTriggerTimeInSec();
|
||||
_stateInfo = "beacon " + String(diff / 60) + ":" + String(diff % 60);
|
||||
uint32_t diff = _beacon_timer.getTriggerTimeInSec();
|
||||
_stateInfo = "beacon " + String(uint32_t(diff / 60)) + ":" + String(uint32_t(diff % 60));
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue