Skip to content

Commit

Permalink
Merge pull request #20 from nliviu/format-esp8266
Browse files Browse the repository at this point in the history
Fix formatting errors for ESP8266 in mos 2.19
  • Loading branch information
pimvanpelt committed Jan 23, 2021
2 parents e85879a + ad1d6d8 commit 2351afd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mgos_ili9341.c
Expand Up @@ -169,7 +169,7 @@ static void ili9341_send_pixels(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t
}

if (buflen != winsize * 2) {
LOG(LL_ERROR, ("Want buflen(%d), to be twice the window size(%d)", buflen, winsize));
LOG(LL_ERROR, ("Want buflen(%d), to be twice the window size(%d)", (int)buflen, winsize));
return;
}

Expand Down Expand Up @@ -540,7 +540,7 @@ void mgos_ili9341_drawDIF(uint16_t x0, uint16_t y0, char *fn) {
}
w = dif_hdr[7] + (dif_hdr[6] << 8) + (dif_hdr[5] << 16) + (dif_hdr[4] << 24);
h = dif_hdr[11] + (dif_hdr[10] << 8) + (dif_hdr[9] << 16) + (dif_hdr[8] << 24);
LOG(LL_DEBUG, ("%s: width=%d height=%d", fn, w, h));
LOG(LL_DEBUG, ("%s: width=%d height=%d", fn, (int)w, (int)h));
pixelline = calloc(w, sizeof(uint16_t));

for (uint16_t yy = 0; yy < h; yy++) {
Expand Down

0 comments on commit 2351afd

Please sign in to comment.