Browse Source

lcd_implementation_drawedit can take 1 arg

Scott Lahteine 8 years ago
parent
commit
71b4f189bf

+ 1
- 1
Marlin/dogm_lcd_implementation.h View File

517
 #define lcd_implementation_drawmenu_setting_edit_callback_long5(sel, row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(sel, row, pstr, ftostr5(*(data)))
517
 #define lcd_implementation_drawmenu_setting_edit_callback_long5(sel, row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(sel, row, pstr, ftostr5(*(data)))
518
 #define lcd_implementation_drawmenu_setting_edit_callback_bool(sel, row, pstr, pstr2, data, callback) lcd_implementation_drawmenu_setting_edit_generic_P(sel, row, pstr, (*(data))?PSTR(MSG_ON):PSTR(MSG_OFF))
518
 #define lcd_implementation_drawmenu_setting_edit_callback_bool(sel, row, pstr, pstr2, data, callback) lcd_implementation_drawmenu_setting_edit_generic_P(sel, row, pstr, (*(data))?PSTR(MSG_ON):PSTR(MSG_OFF))
519
 
519
 
520
-void lcd_implementation_drawedit(const char* pstr, const char* value) {
520
+void lcd_implementation_drawedit(const char* pstr, const char* value=NULL) {
521
   uint8_t rows = 1;
521
   uint8_t rows = 1;
522
   uint8_t lcd_width = LCD_WIDTH, char_width = DOG_CHAR_WIDTH;
522
   uint8_t lcd_width = LCD_WIDTH, char_width = DOG_CHAR_WIDTH;
523
   uint8_t vallen = lcd_strlen(value);
523
   uint8_t vallen = lcd_strlen(value);

+ 1
- 1
Marlin/ultralcd_implementation_hitachi_HD44780.h View File

873
 #define lcd_implementation_drawmenu_setting_edit_callback_long5(sel, row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(sel, row, pstr, '>', ftostr5(*(data)))
873
 #define lcd_implementation_drawmenu_setting_edit_callback_long5(sel, row, pstr, pstr2, data, minValue, maxValue, callback) lcd_implementation_drawmenu_setting_edit_generic(sel, row, pstr, '>', ftostr5(*(data)))
874
 #define lcd_implementation_drawmenu_setting_edit_callback_bool(sel, row, pstr, pstr2, data, callback) lcd_implementation_drawmenu_setting_edit_generic_P(sel, row, pstr, '>', (*(data))?PSTR(MSG_ON):PSTR(MSG_OFF))
874
 #define lcd_implementation_drawmenu_setting_edit_callback_bool(sel, row, pstr, pstr2, data, callback) lcd_implementation_drawmenu_setting_edit_generic_P(sel, row, pstr, '>', (*(data))?PSTR(MSG_ON):PSTR(MSG_OFF))
875
 
875
 
876
-void lcd_implementation_drawedit(const char* pstr, const char* value) {
876
+void lcd_implementation_drawedit(const char* pstr, const char* value=NULL) {
877
   lcd.setCursor(1, 1);
877
   lcd.setCursor(1, 1);
878
   lcd_printPGM(pstr);
878
   lcd_printPGM(pstr);
879
   if (value != NULL) {
879
   if (value != NULL) {

Loading…
Cancel
Save