Fixes
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include "esphome/core/component.h"
|
||||
#include "esphome/components/uart/uart.h"
|
||||
#ifdef USE_SENSOR
|
||||
@@ -15,7 +17,6 @@ class Marlin2 : public PollingComponent, public uart::UARTDevice {
|
||||
public:
|
||||
Marlin2() = default;
|
||||
|
||||
|
||||
#ifdef USE_SENSOR
|
||||
void add_sensor(const std::string& sName, sensor::Sensor *sens);
|
||||
sensor::Sensor* find_sensor(std::string key);
|
||||
@@ -55,6 +56,7 @@ class Marlin2 : public PollingComponent, public uart::UARTDevice {
|
||||
|
||||
private:
|
||||
unsigned long millisProgress=0;
|
||||
std::unordered_map<std::string, std::string> file_table_;
|
||||
};
|
||||
|
||||
} // namespace esphome
|
Reference in New Issue
Block a user