mirror of
https://git.steelants.cz/JonatanRek/ESPHomeMarlin2.git
synced 2026-10-11 09:35:34 +00:00
Progress
This commit is contained in:
1 parent
ebef6ce886
commit
6f7ccc267d
4 files changed
+9
-7
No files matched your search
+3
-3
@@ -6,13 +6,13 @@
|
||||
|
||||
namespace esphome {
|
||||
|
||||
template<typename... Ts> class Marlin2WriteAction : public Action<Ts...> {
|
||||
template<typename... Ts> class WriteAction : public Action<Ts...> {
|
||||
public:
|
||||
explicit Marlin2WriteAction(Marlin2 *marlin2) : marlin2_(marlin2) {}
|
||||
explicit WriteAction(Marlin2 *marlin2) : marlin2_(marlin2) {}
|
||||
TEMPLATABLE_VALUE(std::string, value)
|
||||
|
||||
void play(Ts... x) override {
|
||||
this->marlin2_->write("M117 Action Called!");
|
||||
this->marlin2_->write(this->value_.value(x...));
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
Reference in new issue
Block a user