Fixed compilation when using avr-gcc

- avr-gcc is more strict than the Arduino IDE, it seems.
2.0.x
Marcio Teixeira 7 years ago
parent f05bd7f082
commit 8db67d1647

@ -76,7 +76,7 @@ class ST7920_Lite_Status_Screen {
static void draw_fan_speed(uint8_t value);
static void draw_print_time(uint32_t elapsed);
static void draw_feedrate_percentage(uint8_t percentage);
static void draw_status_message(const unsigned char *str);
static void draw_status_message(const char *str);
static void draw_position(const float x, const float y, const float z, bool position_known = true);
static bool indicators_changed();

@ -99,7 +99,7 @@ void ST7920_Lite_Status_Screen::write_str(progmem_str str) {
write_str_P((const char*)str);
}
void ST7920_Lite_Status_Screen::write_number(uint8_t value, uint8_t digits=3) {
void ST7920_Lite_Status_Screen::write_number(uint8_t value, uint8_t digits) {
char str[7];
const char *fmt;
switch(digits) {
@ -435,7 +435,7 @@ void ST7920_Lite_Status_Screen::draw_feedrate_percentage(uint8_t percentage) {
#endif
}
void ST7920_Lite_Status_Screen::draw_status_message(const unsigned char *str) {
void ST7920_Lite_Status_Screen::draw_status_message(const char *str) {
set_ddram_address(DDRAM_LINE_4);
begin_data();
#if ENABLED(STATUS_MESSAGE_SCROLLING)

Loading…
Cancel
Save