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

This commit is contained in:
Jm 2020-12-24 22:12:59 -08:00
parent 8080bc608b
commit d5b57840d9
2 changed files with 37 additions and 0 deletions

31
src/airtime.cpp Normal file
View File

@ -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 Normal file
View File

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