Use const parameters instead of static casting
Alternative fix to #3149
This commit is contained in:
@ -407,7 +407,7 @@ char lcd_printPGM(const char* str) {
|
||||
return n;
|
||||
}
|
||||
|
||||
char lcd_print(char* str) {
|
||||
char lcd_print(const char* str) {
|
||||
char c, n = 0;
|
||||
unsigned char i = 0;
|
||||
while ((c = str[i++])) n += charset_mapper(c);
|
||||
@ -825,7 +825,7 @@ static void lcd_implementation_drawmenu_setting_edit_generic_P(bool sel, uint8_t
|
||||
#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)))
|
||||
#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))
|
||||
|
||||
void lcd_implementation_drawedit(const char* pstr, char* value) {
|
||||
void lcd_implementation_drawedit(const char* pstr, const char* value) {
|
||||
lcd.setCursor(1, 1);
|
||||
lcd_printPGM(pstr);
|
||||
lcd.print(':');
|
||||
|
Reference in New Issue
Block a user