Browse Source

Patch up some flaws, here and there

pull/1/head
Scott Lahteine 8 years ago
parent
commit
938e6d15c4
  1. 6
      Marlin/Conditionals_post.h
  2. 1
      Marlin/Marlin.h
  3. 1
      Marlin/Marlin_main.cpp
  4. 9
      Marlin/SanityCheck.h
  5. 2
      Marlin/ultralcd.cpp

6
Marlin/Conditionals_post.h

@ -633,17 +633,13 @@
#ifndef LCD_FEEDBACK_FREQUENCY_DURATION_MS
#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100
#endif
#elif PIN_EXISTS(BEEPER)
#else
#ifndef LCD_FEEDBACK_FREQUENCY_HZ
#define LCD_FEEDBACK_FREQUENCY_HZ 5000
#endif
#ifndef LCD_FEEDBACK_FREQUENCY_DURATION_MS
#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 2
#endif
#else
#ifndef LCD_FEEDBACK_FREQUENCY_DURATION_MS
#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 2
#endif
#endif
/**

1
Marlin/Marlin.h

@ -89,6 +89,7 @@ extern const char echomagic[] PROGMEM;
#define SERIAL_ECHOPAIR(name,value) (serial_echopair_P(PSTR(name),(value)))
void serial_echopair_P(const char* s_P, const char *v);
void serial_echopair_P(const char* s_P, char v);
void serial_echopair_P(const char* s_P, int v);
void serial_echopair_P(const char* s_P, long v);

1
Marlin/Marlin_main.cpp

@ -572,6 +572,7 @@ void set_current_from_steppers_for_axis(AxisEnum axis);
void plan_cubic_move(const float offset[4]);
#endif
void serial_echopair_P(const char* s_P, const char *v) { serialprintPGM(s_P); SERIAL_ECHO(v); }
void serial_echopair_P(const char* s_P, char v) { serialprintPGM(s_P); SERIAL_CHAR(v); }
void serial_echopair_P(const char* s_P, int v) { serialprintPGM(s_P); SERIAL_ECHO(v); }
void serial_echopair_P(const char* s_P, long v) { serialprintPGM(s_P); SERIAL_ECHO(v); }

9
Marlin/SanityCheck.h

@ -97,6 +97,15 @@
#endif
#endif
/**
* Delta requirements
*/
#if ENABLED(DELTA)
#if DISABLED(USE_XMAX_PLUG) && DISABLED(USE_YMAX_PLUG) && DISABLED(USE_ZMAX_PLUG)
#error "You probably want to use Max Endstops for DELTA!"
#endif
#endif
/**
* Babystepping
*/

2
Marlin/ultralcd.cpp

@ -2327,6 +2327,8 @@ void kill_screen(const char* lcd_msg) {
lcd.buzz(duration, freq);
#elif PIN_EXISTS(BEEPER)
buzzer.tone(duration, freq);
#else
UNUSED(duration); UNUSED(freq);
#endif
}

Loading…
Cancel
Save