Commit a1309759 authored by MagoKimbra's avatar MagoKimbra

Update Pause Pin

parent aa0fa6a5
...@@ -684,6 +684,7 @@ your extruder heater takes 2 minutes to hit the target on heating. ...@@ -684,6 +684,7 @@ your extruder heater takes 2 minutes to hit the target on heating.
// Setting firmware for filament end switch // Setting firmware for filament end switch
//#define FILAMENT_END_SWITCH //#define FILAMENT_END_SWITCH
#ifdef FILAMENT_END_SWITCH #ifdef FILAMENT_END_SWITCH
#define PAUSEPINPULLUP
const bool PAUSE_PIN_INVERTING = false; // set to true to invert the logic of the pause pin. const bool PAUSE_PIN_INVERTING = false; // set to true to invert the logic of the pause pin.
#endif #endif
......
...@@ -23,31 +23,31 @@ ...@@ -23,31 +23,31 @@
#include "pins.h" #include "pins.h"
#ifndef AT90USB #ifndef AT90USB
#define HardwareSerial_h // trick to disable the standard HWserial #define HardwareSerial_h // trick to disable the standard HWserial
#endif #endif
#if (ARDUINO >= 100) #if (ARDUINO >= 100)
# include "Arduino.h" #include "Arduino.h"
#else #else
# include "WProgram.h" #include "WProgram.h"
#endif #endif
// Arduino < 1.0.0 does not define this, so we need to do it ourselves // Arduino < 1.0.0 does not define this, so we need to do it ourselves
#ifndef analogInputToDigitalPin #ifndef analogInputToDigitalPin
# define analogInputToDigitalPin(p) ((p) + 0xA0) #define analogInputToDigitalPin(p) ((p) + 0xA0)
#endif #endif
#ifdef AT90USB #ifdef AT90USB
#include "HardwareSerial.h" #include "HardwareSerial.h"
#endif #endif
#include "MarlinSerial.h" #include "MarlinSerial.h"
#ifndef cbi #ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#endif #endif
#ifndef sbi #ifndef sbi
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) #define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
#endif #endif
#include "WString.h" #include "WString.h"
...@@ -86,7 +86,7 @@ extern const char echomagic[] PROGMEM; ...@@ -86,7 +86,7 @@ extern const char echomagic[] PROGMEM;
#define SERIAL_ECHOPAIR(name,value) (serial_echopair_P(PSTR(name),(value))) #define SERIAL_ECHOPAIR(name,value) (serial_echopair_P(PSTR(name),(value)))
#define SERIAL_EOL SERIAL_ECHOLN("") #define SERIAL_EOL MYSERIAL.write('\n')
void serial_echopair_P(const char *s_P, float v); void serial_echopair_P(const char *s_P, float v);
void serial_echopair_P(const char *s_P, double v); void serial_echopair_P(const char *s_P, double v);
......
...@@ -606,8 +606,10 @@ void setup_pausepin() ...@@ -606,8 +606,10 @@ void setup_pausepin()
{ {
#if defined(PAUSE_PIN) && PAUSE_PIN > -1 #if defined(PAUSE_PIN) && PAUSE_PIN > -1
SET_INPUT(PAUSE_PIN); SET_INPUT(PAUSE_PIN);
#ifdef PAUSEPINPULLUP
WRITE(PAUSE_PIN,HIGH); WRITE(PAUSE_PIN,HIGH);
#endif #endif
#endif
} }
void setup_photpin() void setup_photpin()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment