Move M240 to cpp

This commit is contained in:
Scott Lahteine
2017-09-17 03:20:32 -05:00
parent d4aaa0f1c8
commit ebb9bd5419
3 changed files with 11 additions and 10 deletions

View File

@ -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
* See http://www.doc-diy.net/photo/rc-1_hacked/
*/
void gcode_M240() {
void GcodeSuite::M240() {
#ifdef CHDK
OUT_WRITE(CHDK, HIGH);
@ -51,3 +57,5 @@ void gcode_M240() {
#endif
}
#endif // CHDK || HAS_PHOTOGRAPH