removed call to u8x8_utf8_init from u8g2 "begin" member function
This commit is contained in:
parent
1644c8f652
commit
8484859761
|
@ -111,7 +111,8 @@ class U8G2 : public Print
|
|||
|
||||
|
||||
void begin(void) {
|
||||
initDisplay(); clearDisplay(); setPowerSave(0); u8x8_utf8_init(u8g2_GetU8x8(&u8g2));}
|
||||
/* note: call to u8x8_utf8_init is not required here, this is done in the setup procedures before */
|
||||
initDisplay(); clearDisplay(); setPowerSave(0); }
|
||||
|
||||
#ifdef U8X8_USE_PINS
|
||||
/* use U8X8_PIN_NONE if a pin is not required */
|
||||
|
|
|
@ -139,7 +139,7 @@ uint16_t u8x8_get_encoding_from_utf8_string(const char **str)
|
|||
/* reset the internal state machine */
|
||||
void u8x8_utf8_init(u8x8_t *u8x8)
|
||||
{
|
||||
u8x8->utf8_state = 0;
|
||||
u8x8->utf8_state = 0; /* also reset during u8x8_SetupDefaults() */
|
||||
}
|
||||
|
||||
uint16_t u8x8_ascii_next(u8x8_t *u8x8, uint8_t b)
|
||||
|
|
|
@ -58,6 +58,7 @@ void u8x8_SetupDefaults(u8x8_t *u8x8)
|
|||
u8x8->gpio_and_delay_cb = u8x8_dummy_cb;
|
||||
u8x8->is_font_inverse_mode = 0;
|
||||
u8x8->device_address = 0;
|
||||
u8x8->utf8_state = 0; /* also reset by u8x8_utf8_init */
|
||||
u8x8->i2c_address = 255;
|
||||
u8x8->debounce_default_pin_state = 255; /* assume all low active buttons */
|
||||
|
||||
|
|
Loading…
Reference in New Issue