Revert "PFW-1523 Implement M79 timer for PrusaLink"

This reverts commit 237db89c02.
This commit is contained in:
Juan Francisco Estrada 2023-11-22 22:43:40 +01:00
parent 30eab77116
commit c3b965c961
5 changed files with 1 additions and 49 deletions

View File

@ -182,7 +182,6 @@ set(FW_SOURCES
Filament_sensor.cpp
first_lay_cal.cpp
heatbed_pwm.cpp
host.cpp
la10compat.cpp
language.c
lcd.cpp

View File

@ -66,9 +66,6 @@
*/
#define AUTO_REPORT
// Keepalive period which is restarted with M79
#define M79_TIMEOUT 30 * 1000 // ms
//===========================================================================
//=============================Mechanical Settings===========================
//===========================================================================

View File

@ -68,7 +68,6 @@
#include "backlight.h"
#include "planner.h"
#include "host.h"
#include "stepper.h"
#include "temperature.h"
#include "fancheck.h"
@ -5851,20 +5850,6 @@ Sigma_Exit:
}
break;
}
/*!
### M79 - TODO
Restart the printer-host enable keepalive timer. While the timer has not expired, the printer will enable host specific features.
#### Usage
M79
#### Parameters
None
*/
case 79:
M79_timer_restart();
break;
/*!
### M104 - Set hotend temperature <a href="https://reprap.org/wiki/G-code#M104:_Set_Extruder_Temperature">M104: Set Extruder Temperature</a>
#### Usage
@ -6321,6 +6306,7 @@ Sigma_Exit:
case 113:
if (code_seen('S')) {
host_keepalive_interval = code_value_uint8();
// NOMORE(host_keepalive_interval, 60);
}
else {
SERIAL_ECHO_START;
@ -9438,7 +9424,6 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) //default argument s
host_autoreport();
#endif //AUTO_REPORT
host_keepalive();
M79_timer_update_status();
}
void kill(const char *full_screen_message) {

View File

@ -1,17 +0,0 @@
#include "Configuration_adv.h"
#include "host.h"
#include "Timer.h"
static LongTimer M79_timer;
void M79_timer_restart() {
M79_timer.start();
}
bool M79_timer_get_status() {
return M79_timer.running();
}
void M79_timer_update_status() {
M79_timer.expired(M79_TIMEOUT);
}

View File

@ -1,12 +0,0 @@
#pragma once
/// Restart the M79 timer
void M79_timer_restart();
/// Get the current M79 timer status
/// @returns true if running, false otherwise
bool M79_timer_get_status();
/// Checks if the timer period has expired. If the timer
/// has expired, the timer is stopped
void M79_timer_update_status();