Move M240 to cpp

2.0.x
Scott Lahteine 7 years ago
parent d4aaa0f1c8
commit ebb9bd5419

@ -352,10 +352,6 @@ bool pin_is_protected(const int8_t pin) {
return false; return false;
} }
#if defined(CHDK) || HAS_PHOTOGRAPH
#include "gcode/feature/camera/M240.h"
#endif
#if HAS_LCD_CONTRAST #if HAS_LCD_CONTRAST
#include "gcode/lcd/M250.h" #include "gcode/lcd/M250.h"
#endif #endif

@ -20,11 +20,17 @@
* *
*/ */
#include "../../../inc/MarlinConfig.h"
#if defined(CHDK) || HAS_PHOTOGRAPH
#include "../../gcode.h"
/** /**
* M240: Trigger a camera by emulating a Canon RC-1 * M240: Trigger a camera by emulating a Canon RC-1
* See http://www.doc-diy.net/photo/rc-1_hacked/ * See http://www.doc-diy.net/photo/rc-1_hacked/
*/ */
void gcode_M240() { void GcodeSuite::M240() {
#ifdef CHDK #ifdef CHDK
OUT_WRITE(CHDK, HIGH); OUT_WRITE(CHDK, HIGH);
@ -51,3 +57,5 @@ void gcode_M240() {
#endif #endif
} }
#endif // CHDK || HAS_PHOTOGRAPH

@ -119,7 +119,6 @@ void GcodeSuite::dwell(millis_t time) {
extern void gcode_M163(); extern void gcode_M163();
extern void gcode_M164(); extern void gcode_M164();
extern void gcode_M165(); extern void gcode_M165();
extern void gcode_M240();
extern void gcode_M250(); extern void gcode_M250();
extern void gcode_M302(); extern void gcode_M302();
extern void gcode_M350(); extern void gcode_M350();
@ -576,10 +575,8 @@ void GcodeSuite::process_next_command() {
#endif #endif
#if defined(CHDK) || HAS_PHOTOGRAPH #if defined(CHDK) || HAS_PHOTOGRAPH
case 240: // M240: Trigger a camera by emulating a Canon RC-1 : http://www.doc-diy.net/photo/rc-1_hacked/ case 240: M240(); break; // M240: Trigger a camera by emulating a Canon RC-1 : http://www.doc-diy.net/photo/rc-1_hacked/
gcode_M240(); #endif
break;
#endif // CHDK || PHOTOGRAPH_PIN
#if HAS_LCD_CONTRAST #if HAS_LCD_CONTRAST
case 250: // M250: Set LCD contrast case 250: // M250: Set LCD contrast

Loading…
Cancel
Save