From: Robin Krens Date: Wed, 18 Sep 2019 08:08:58 +0000 (+0700) Subject: st7735s: bug fix uninitialized value X-Git-Url: https://robinkrens.nl/gitweb/?a=commitdiff_plain;h=3da20a4d89e9c1c799ef716ff043c5241237caa9;p=cortex-from-scratch st7735s: bug fix uninitialized value --- diff --git a/drivers/st7735s.c b/drivers/st7735s.c index 8eef4f3..870ac06 100644 --- a/drivers/st7735s.c +++ b/drivers/st7735s.c @@ -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);