Browse Source

Merge pull request #1250 from chertykov/Development

Move initialization of errormagic[] and echomagic[] to Marlin_main.cpp
pull/1/head
Bo Herrmannsen 10 years ago
parent
commit
23e768dffa
  1. 5
      Marlin/Marlin.h
  2. 3
      Marlin/Marlin_main.cpp

5
Marlin/Marlin.h

@ -66,8 +66,9 @@
#define SERIAL_PROTOCOLLNPGM(x) (serialprintPGM(PSTR(x)),MYSERIAL.write('\n'))
const char errormagic[] PROGMEM ="Error:";
const char echomagic[] PROGMEM ="echo:";
extern const char errormagic[] PROGMEM;
extern const char echomagic[] PROGMEM;
#define SERIAL_ERROR_START (serialprintPGM(errormagic))
#define SERIAL_ERROR(x) SERIAL_PROTOCOL(x)
#define SERIAL_ERRORPGM(x) SERIAL_PROTOCOLPGM(x)

3
Marlin/Marlin_main.cpp

@ -329,6 +329,9 @@ bool cancel_heatup = false ;
int meas_delay_cm = MEASUREMENT_DELAY_CM; //distance delay setting
#endif
const char errormagic[] PROGMEM = "Error:";
const char echomagic[] PROGMEM = "echo:";
//===========================================================================
//=============================Private Variables=============================
//===========================================================================

Loading…
Cancel
Save