From e3cb6194100957e0fdd1bfc86a9a70e3123c2caf Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Sat, 28 Dec 2024 10:20:41 +0100 Subject: [PATCH] FIx Pointer --- marlin2.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/marlin2.cpp b/marlin2.cpp index 9f3ea14..f83a6b0 100644 --- a/marlin2.cpp +++ b/marlin2.cpp @@ -135,8 +135,13 @@ namespace esphome { //Parse Printitme if(MarlinOutput.find("echo:Print time: ") == 0) { - float d=0, h=0, m=0, s=0; - unsigned long current=0, remaining=0; + float d=0; + float h=0; + float m=0; + float s=0; + + unsigned long current=0; + unsigned long remaining=0; if (process_print_time_msg(d, h, m, s, current, remaining) != 0) { if (find_sensor("print_time") != nullptr)