checking in a little of the airtime so i can switch to the laptop.

1.2-legacy
Jm 2020-12-24 22:12:59 -08:00
rodzic 8080bc608b
commit d5b57840d9
2 zmienionych plików z 37 dodań i 0 usunięć

31
src/airtime.cpp 100644
Wyświetl plik

@ -0,0 +1,31 @@
/*
We will keep hourly stats for 48 hours and daily stats for 7 days
3600 seconds in an hour, uint16_t per hour
86400 seconds in a day, uint32_t per day
Memory to store 48 hours = 96 bytes
Memory to store 7 days = 28 bytes
*/
void logTXairtime(uint32_t airtime_ms)
{
/*
How many hours since power up?
Millis / 1000 / 3600
*/
}
void logRXairtime()
{
/*
*/
}

6
src/airtime.h 100644
Wyświetl plik

@ -0,0 +1,6 @@
#pragma once
#include "configuration.h"
#include <Arduino.h>
#include <functional>