Skip to content

Commit

Permalink
Merge pull request #4537 from thinkyhead/rc_fix_some_flaws
Browse files Browse the repository at this point in the history
Patch up some flaws here and there
  • Loading branch information
thinkyhead authored Aug 6, 2016
2 parents 3a3984e + 938e6d1 commit 5ef4a55
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
6 changes: 1 addition & 5 deletions Marlin/Conditionals_post.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down
1 change: 1 addition & 0 deletions Marlin/Marlin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand Down
9 changes: 9 additions & 0 deletions Marlin/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,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
*/
Expand Down
2 changes: 2 additions & 0 deletions Marlin/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 5ef4a55

Please sign in to comment.