Use const parameters instead of static casting
Alternative fix to #3149
This commit is contained in:
parent
09ef955191
commit
c97c2dcaf7
4 changed files with 8 additions and 8 deletions
|
|
@ -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(':');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue