Skip to content

Commit

Permalink
PFW-1523 Move timeout constant to Configuration_adv
Browse files Browse the repository at this point in the history
  • Loading branch information
gudnimg committed Oct 27, 2023
1 parent 71f0c40 commit f17030c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Firmware/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
*/
#define AUTO_REPORT

// Keepalive period which is restarted with M79
#define HOST_KEEPALIVE_TIMEOUT 30 * 1000 // ms

//===========================================================================
//=============================Mechanical Settings===========================
//===========================================================================
Expand Down
2 changes: 0 additions & 2 deletions Firmware/host.cpp
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 1 addition & 1 deletion Firmware/host.h
Original file line number Diff line number Diff line change
@@ -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();

Expand Down

0 comments on commit f17030c

Please sign in to comment.