Skip to content
Snippets Groups Projects
  1. Mar 11, 2017
    • Dan Church's avatar
      Fix more compiler warnings · dbaa5fdc
      Dan Church authored
      Fixes the following warnings when compiling using GCC 5.4:
      
          CXX OLEDDisplayUi.o
          ./OLEDDisplayUi.cpp: In member function 'void OLEDDisplayUi::drawFrame()':
          ./OLEDDisplayUi.cpp:284:48: error: 'y1' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      	    x *= dir; y *= dir; x1 *= dir; y1 *= dir;
      						    ^
          ./OLEDDisplayUi.cpp:284:37: error: 'x1' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      	    x *= dir; y *= dir; x1 *= dir; y1 *= dir;
      					 ^
          ./OLEDDisplayUi.cpp:284:26: error: 'y' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      	    x *= dir; y *= dir; x1 *= dir; y1 *= dir;
      			      ^
          ./OLEDDisplayUi.cpp:284:16: error: 'x' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      	    x *= dir; y *= dir; x1 *= dir; y1 *= dir;
      		    ^
          ./OLEDDisplayUi.cpp: In member function 'void OLEDDisplayUi::drawIndicator()':
          ./OLEDDisplayUi.cpp:393:35: error: 'y' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      	   this->display->drawFastImage(x, y, 8, 8, image);
      				       ^
          ./OLEDDisplayUi.cpp:393:35: error: 'x' may be used uninitialized in this function [-Werror=maybe-uninitialized]
          ./OLEDDisplayUi.cpp:387:7: error: 'posOfHighlightFrame' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      	   if (posOfHighlightFrame == i) {
      	   ^
          cc1plus: some warnings being treated as errors
      dbaa5fdc
    • Dan Church's avatar
      Fix compiler warnings · 4ebb6ec7
      Dan Church authored
      Fix the following warnings, seen when compiling with GCC 5.4:
      
          CXX OLEDDisplay.o
          ./OLEDDisplay.cpp: In member function 'void OLEDDisplay::drawStringInternal(int16_t, int16_t, char*, uint16_t, uint16_t)':
          ./OLEDDisplay.cpp:381:10: error: enumeration value 'TEXT_ALIGN_LEFT' not handled in switch [-Werror=switch]
             switch (textAlignment) {
      	      ^
          ./OLEDDisplay.cpp: In member function 'void OLEDDisplay::drawInternal(int16_t, int16_t, int16_t, int16_t, const char*, uint16_t, uint16_t)':
          ./OLEDDisplay.cpp:722:13: warning: unused variable 'yScreenPos' [-Wunused-variable]
      	 int16_t yScreenPos = yMove + yOffset;
      		 ^
          ./OLEDDisplay.cpp: In member function 'void OLEDDisplay::drawXbm(int16_t, int16_t, int16_t, int16_t, const char*)':
          ./OLEDDisplay.cpp:361:19: error: 'data' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      	     data >>= 1; // Move a bit
      		       ^
          cc1plus: some warnings being treated as errors
      4ebb6ec7
  2. Feb 17, 2017
  3. Feb 15, 2017
  4. Jan 08, 2017
  5. Jan 06, 2017
  6. Jan 05, 2017
  7. Jan 02, 2017
  8. Sep 11, 2016
    • tzapu's avatar
      Cloder to middle vertical align · d18ca112
      tzapu authored
      Due to the 4px spacing, the indicators are a bit offset when adding them to LEFT or RIGHT sides of screen
      d18ca112
  9. Aug 27, 2016
  10. Aug 12, 2016
  11. Aug 11, 2016
  12. Aug 02, 2016
  13. Jul 24, 2016
  14. Jul 23, 2016
  15. Jul 15, 2016
Loading