Skip to content

Commit 86bc50a

Browse files
committed
Reformatted with clang-format
1 parent 7e17a48 commit 86bc50a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Adafruit_ILI9341.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,21 +302,23 @@ void Adafruit_ILI9341::setScrollMargins(uint16_t top, uint16_t bottom) {
302302
/**************************************************************************/
303303
void Adafruit_ILI9341::setAddrWindow(uint16_t x1, uint16_t y1, uint16_t w,
304304
uint16_t h) {
305-
static uint16_t old_x1 = 0xffff, old_x2 = 0xffff;
306-
static uint16_t old_y1 = 0xffff, old_y2 = 0xffff;
305+
static uint16_t old_x1 = 0xffff, old_x2 = 0xffff;
306+
static uint16_t old_y1 = 0xffff, old_y2 = 0xffff;
307307

308308
uint16_t x2 = (x1 + w - 1), y2 = (y1 + h - 1);
309309
if (x1 != old_x1 || x2 != old_x2) {
310310
writeCommand(ILI9341_CASET); // Column address set
311311
SPI_WRITE16(x1);
312312
SPI_WRITE16(x2);
313-
old_x1 = x1; old_x2 = x2;
313+
old_x1 = x1;
314+
old_x2 = x2;
314315
}
315316
if (y1 != old_y1 || y2 != old_y2) {
316317
writeCommand(ILI9341_PASET); // Row address set
317318
SPI_WRITE16(y1);
318319
SPI_WRITE16(y2);
319-
old_y1 = y1; old_y2 = y2;
320+
old_y1 = y1;
321+
old_y2 = y2;
320322
}
321323
writeCommand(ILI9341_RAMWR); // Write to RAM
322324
}

0 commit comments

Comments
 (0)