From f17030c78347d6a4030eb49c32b0150292c30d27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Fri, 27 Oct 2023 20:44:56 +0000 Subject: [PATCH] PFW-1523 Move timeout constant to Configuration_adv --- Firmware/Configuration_adv.h | 3 +++ Firmware/host.cpp | 2 -- Firmware/host.h | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Firmware/Configuration_adv.h b/Firmware/Configuration_adv.h index 94b86c608b..44f94b81b1 100644 --- a/Firmware/Configuration_adv.h +++ b/Firmware/Configuration_adv.h @@ -66,6 +66,9 @@ */ #define AUTO_REPORT +// Keepalive period which is restarted with M79 +#define HOST_KEEPALIVE_TIMEOUT 30 * 1000 // ms + //=========================================================================== //=============================Mechanical Settings=========================== //=========================================================================== diff --git a/Firmware/host.cpp b/Firmware/host.cpp index ca99f570e1..ce548b81d7 100644 --- a/Firmware/host.cpp +++ b/Firmware/host.cpp @@ -1,8 +1,6 @@ #include "host.h" #include "Timer.h" -#define PRUSALINK_KEEPALIVE_TIMEOUT 30 * 1000 // 30 seconds - // When running, the printer will enable functionality only available when Prusa Link is connected static LongTimer prusa_link_keepalive; diff --git a/Firmware/host.h b/Firmware/host.h index e5eefb310b..75e6e4ddb9 100644 --- a/Firmware/host.h +++ b/Firmware/host.h @@ -1,7 +1,7 @@ #pragma once /// Restart the host keepalive timer. -/// Prusa Link will be enabled for duration specified by PRUSALINK_KEEPALIVE_TIMEOUT +/// Prusa Link will be enabled for duration specified by HOST_KEEPALIVE_TIMEOUT /// The timer should be restarted periodically to keep Prusa Link specific functionality enabled void prusalink_timer_restart();