Skip to content
Snippets Groups Projects
Commit 10c1b442 authored by Phr3d13's avatar Phr3d13 Committed by Scott Lahteine
Browse files

Fixes for Anet10 and gt2560

Fixes for 2 "... not declared in this scope" compiler errors.
parent 5a3a5337
Branches
Tags
No related merge requests found
...@@ -239,12 +239,6 @@ void setup_powerhold() { ...@@ -239,12 +239,6 @@ void setup_powerhold() {
#endif #endif
} }
void suicide() {
#if HAS_SUICIDE
OUT_WRITE(SUICIDE_PIN, LOW);
#endif
}
#if HAS_SERVOS #if HAS_SERVOS
HAL_SERVO_LIB servo[NUM_SERVOS]; HAL_SERVO_LIB servo[NUM_SERVOS];
...@@ -612,7 +606,10 @@ void kill(const char* lcd_msg) { ...@@ -612,7 +606,10 @@ void kill(const char* lcd_msg) {
SET_INPUT(PS_ON_PIN); SET_INPUT(PS_ON_PIN);
#endif #endif
#if HAS_SUICIDE
suicide(); suicide();
#endif
while (1) { while (1) {
#if ENABLED(USE_WATCHDOG) #if ENABLED(USE_WATCHDOG)
watchdog_reset(); watchdog_reset();
... ...
......
...@@ -218,4 +218,8 @@ extern millis_t max_inactive_time, stepper_inactive_time; ...@@ -218,4 +218,8 @@ extern millis_t max_inactive_time, stepper_inactive_time;
bool pin_is_protected(const int8_t pin); bool pin_is_protected(const int8_t pin);
#if HAS_SUICIDE
inline void suicide() { OUT_WRITE(SUICIDE_PIN, LOW); }
#endif
#endif // __MARLIN_H__ #endif // __MARLIN_H__
...@@ -30,6 +30,10 @@ ...@@ -30,6 +30,10 @@
#include "../../lcd/ultralcd.h" #include "../../lcd/ultralcd.h"
#endif #endif
#if HAS_SUICIDE
#include "../../Marlin.h"
#endif
#if HAS_POWER_SWITCH #if HAS_POWER_SWITCH
// Could be moved to a feature, but this is all the data // Could be moved to a feature, but this is all the data
... ...
......
...@@ -1972,7 +1972,7 @@ void Temperature::isr() { ...@@ -1972,7 +1972,7 @@ void Temperature::isr() {
#if ENABLED(ADC_KEYPAD) #if ENABLED(ADC_KEYPAD)
case Prepare_ADC_KEY: case Prepare_ADC_KEY:
START_ADC(ADC_KEYPAD_PIN); HAL_START_ADC(ADC_KEYPAD_PIN);
break; break;
case Measure_ADC_KEY: case Measure_ADC_KEY:
if (ADCKey_count < 16) { if (ADCKey_count < 16) {
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment