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
+4
-1
@@ -52,7 +52,8 @@ namespace esphome {
|
||||
|
||||
void Marlin2::write(std::string gcode) {
|
||||
ESP_LOGD(TAG, "->GCODE: %s", gcode.c_str());
|
||||
write_str(gcode.c_str());
|
||||
|
||||
write_str((std::string("\r\n\r\n") + gcode + std::string("\r\n")).c_str());
|
||||
flush();
|
||||
}
|
||||
|
||||
@@ -77,6 +78,8 @@ namespace esphome {
|
||||
}
|
||||
|
||||
void Marlin2::process_line() {
|
||||
ESP_LOGD(TAG, "#%s#",MarlinOutput.c_str());
|
||||
|
||||
if(MarlinOutput.size() < 3) {
|
||||
MarlinOutput="";
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user