2020-12-25 06:12:59 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "configuration.h"
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include <functional>
|
|
|
|
|
2020-12-26 00:10:38 +00:00
|
|
|
enum reportTypes { TX_LOG, RX_LOG, RX_ALL_LOG };
|
|
|
|
|
|
|
|
void logAirtime(reportTypes reportType, uint32_t airtime_ms);
|
|
|
|
|
2020-12-27 06:39:43 +00:00
|
|
|
void airtimeCalculator();
|
|
|
|
|
2020-12-26 00:10:38 +00:00
|
|
|
uint8_t currentHourIndex();
|
2020-12-27 06:39:43 +00:00
|
|
|
uint8_t getHoursToLog();
|
2020-12-26 00:10:38 +00:00
|
|
|
|
2020-12-27 06:39:43 +00:00
|
|
|
uint32_t getSecondsSinceBoot();
|
2020-12-26 00:10:38 +00:00
|
|
|
|
|
|
|
uint16_t *airtimeReport(reportTypes reportType);
|