From 4bf20be664ff50ac3211f61c7596949ce8efd7c9 Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Sat, 28 Dec 2024 10:41:08 +0100 Subject: [PATCH] Working compilation --- marlin2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/marlin2.cpp b/marlin2.cpp index 5e55756..8af5937 100644 --- a/marlin2.cpp +++ b/marlin2.cpp @@ -252,8 +252,8 @@ namespace esphome { } } - current = ((*d)*24*60*60) + ((*h)*60*60) + ((*m)*60) + (*s); - return 1; + *current = (unsigned long) round(((*d)*24*60*60) + ((*h)*60*60) + ((*m)*60) + (*s)); + return 1; } } // namespace esphome \ No newline at end of file