diff --git a/OLEDDisplay.cpp b/OLEDDisplay.cpp index f8fc226519b37df85862d0ff3e72bd26a4691eaa..df38b3bea11bbc8a13609a3085332499cea75bde 100644 --- a/OLEDDisplay.cpp +++ b/OLEDDisplay.cpp @@ -353,7 +353,7 @@ void OLEDDisplay::drawFastImage(int16_t xMove, int16_t yMove, int16_t width, int void OLEDDisplay::drawXbm(int16_t xMove, int16_t yMove, int16_t width, int16_t height, const char *xbm) { int16_t widthInXbm = (width + 7) / 8; - uint8_t data; + uint8_t data = 0; for(int16_t y = 0; y < height; y++) { for(int16_t x = 0; x < width; x++ ) { @@ -388,6 +388,8 @@ void OLEDDisplay::drawStringInternal(int16_t xMove, int16_t yMove, char* text, u case TEXT_ALIGN_RIGHT: xMove -= textWidth; break; + case TEXT_ALIGN_LEFT: + break; } // Don't draw anything if it is not on the screen. diff --git a/OLEDDisplay.h b/OLEDDisplay.h index 81537a24fa54ba017715d4971fb094f6f6b3e791..e01f4bbcac219286a729950a815225a7efa6281d 100644 --- a/OLEDDisplay.h +++ b/OLEDDisplay.h @@ -250,7 +250,7 @@ class OLEDDisplay : public Print { virtual void sendCommand(uint8_t com) {}; // Connect to the display - virtual bool connect() {}; + virtual bool connect() {return true;}; // Send all the init commands void sendInitCommands();