mirror of
https://github.com/esphome/esphome.git
synced 2025-08-03 08:57:47 +00:00
fixes
This commit is contained in:
parent
d1609de25a
commit
0097a55eaa
@ -1,5 +1,4 @@
|
||||
#include "runtime_stats.h"
|
||||
#include "esphome/core/defines.h"
|
||||
|
||||
#ifdef USE_RUNTIME_STATS
|
||||
|
||||
@ -10,6 +9,9 @@ namespace esphome {
|
||||
|
||||
namespace runtime_stats {
|
||||
|
||||
// Forward declaration to help compiler
|
||||
class RuntimeStatsCollector;
|
||||
|
||||
RuntimeStatsCollector::RuntimeStatsCollector() : log_interval_(60000), next_log_time_(0) {
|
||||
global_runtime_stats = this;
|
||||
}
|
||||
|
@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "esphome/core/defines.h"
|
||||
|
||||
#ifdef USE_RUNTIME_STATS
|
||||
|
||||
#include <map>
|
||||
@ -122,4 +124,4 @@ extern runtime_stats::RuntimeStatsCollector
|
||||
|
||||
} // namespace esphome
|
||||
|
||||
#endif // USE_RUNTIME_STATS
|
||||
#endif // USE_RUNTIME_STATS
|
||||
|
Loading…
x
Reference in New Issue
Block a user