Patch up some flaws, here and there
This commit is contained in:
parent
dddaeb3f8c
commit
938e6d15c4
@ -633,17 +633,13 @@
|
|||||||
#ifndef LCD_FEEDBACK_FREQUENCY_DURATION_MS
|
#ifndef LCD_FEEDBACK_FREQUENCY_DURATION_MS
|
||||||
#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100
|
#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100
|
||||||
#endif
|
#endif
|
||||||
#elif PIN_EXISTS(BEEPER)
|
#else
|
||||||
#ifndef LCD_FEEDBACK_FREQUENCY_HZ
|
#ifndef LCD_FEEDBACK_FREQUENCY_HZ
|
||||||
#define LCD_FEEDBACK_FREQUENCY_HZ 5000
|
#define LCD_FEEDBACK_FREQUENCY_HZ 5000
|
||||||
#endif
|
#endif
|
||||||
#ifndef LCD_FEEDBACK_FREQUENCY_DURATION_MS
|
#ifndef LCD_FEEDBACK_FREQUENCY_DURATION_MS
|
||||||
#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 2
|
#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 2
|
||||||
#endif
|
#endif
|
||||||
#else
|
|
||||||
#ifndef LCD_FEEDBACK_FREQUENCY_DURATION_MS
|
|
||||||
#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 2
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -89,6 +89,7 @@ extern const char echomagic[] PROGMEM;
|
|||||||
|
|
||||||
#define SERIAL_ECHOPAIR(name,value) (serial_echopair_P(PSTR(name),(value)))
|
#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, char v);
|
||||||
void serial_echopair_P(const char* s_P, int v);
|
void serial_echopair_P(const char* s_P, int v);
|
||||||
void serial_echopair_P(const char* s_P, long v);
|
void serial_echopair_P(const char* s_P, long v);
|
||||||
|
@ -572,6 +572,7 @@ void set_current_from_steppers_for_axis(AxisEnum axis);
|
|||||||
void plan_cubic_move(const float offset[4]);
|
void plan_cubic_move(const float offset[4]);
|
||||||
#endif
|
#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, 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, int v) { serialprintPGM(s_P); SERIAL_ECHO(v); }
|
||||||
void serial_echopair_P(const char* s_P, long v) { serialprintPGM(s_P); SERIAL_ECHO(v); }
|
void serial_echopair_P(const char* s_P, long v) { serialprintPGM(s_P); SERIAL_ECHO(v); }
|
||||||
|
@ -97,6 +97,15 @@
|
|||||||
#endif
|
#endif
|
||||||
#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
|
* Babystepping
|
||||||
*/
|
*/
|
||||||
|
@ -2327,6 +2327,8 @@ void kill_screen(const char* lcd_msg) {
|
|||||||
lcd.buzz(duration, freq);
|
lcd.buzz(duration, freq);
|
||||||
#elif PIN_EXISTS(BEEPER)
|
#elif PIN_EXISTS(BEEPER)
|
||||||
buzzer.tone(duration, freq);
|
buzzer.tone(duration, freq);
|
||||||
|
#else
|
||||||
|
UNUSED(duration); UNUSED(freq);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user