st7735s: bug fix uninitialized value
authorRobin Krens <robin@robinkrens.nl>
Wed, 18 Sep 2019 08:08:58 +0000 (15:08 +0700)
committerRobin Krens <robin@robinkrens.nl>
Wed, 18 Sep 2019 08:08:58 +0000 (15:08 +0700)
drivers/st7735s.c

index 8eef4f3..870ac06 100644 (file)
@@ -197,7 +197,8 @@ int tft_putc(uint16_t fg, uint16_t bg, char c) {
        //uint8_t databuf[9] =  {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
        
        int totalpixels = 72;
-       int column, row = 0;
+       int column = 0;
+       int row = 0;
        uint8_t current;
 
        tft_command(TFT_CASET, 4, 0x00, 10, 0x00, 18);