Compare commits

...

2 Commits

Author SHA1 Message Date
9f9227cf53 FIx 2025-03-03 10:05:58 +01:00
1301c6f368 Fixes 2025-03-03 10:01:54 +01:00

View File

@ -1,13 +1,13 @@
#pragma once #pragma once
#include "uart.h" #include "marlin2.h"
#include "esphome/core/automation.h" #include "esphome/core/automation.h"
#include <vector> #include <vector>
namespace esphome { namespace esphome {
template<typename... Ts> class Marlin2WriteAction : public Action<Ts...>, public Parented<UARTComponent> { template<typename... Ts> class Marlin2WriteAction : public Action<Ts...>, public Parented<Marlin2> {
public: public:
void set_data_template(std::function<std::vector<uint8_t>(Ts...)> func) { void set_data_template(std::function<std::vector<uint8_t>(Ts...)> func) {
this->data_func_ = func; this->data_func_ = func;