X-Git-Url: http://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/9d18e10afb2439a6a9ba6978a799259746a837b7..bd95925fbea9a5546c20e77d6c6051ffc72e1e7e:/project/commands/drawing/cmd_pixel.c diff --git a/project/commands/drawing/cmd_pixel.c b/project/commands/drawing/cmd_pixel.c index 9aeffb8..45a7432 100644 --- a/project/commands/drawing/cmd_pixel.c +++ b/project/commands/drawing/cmd_pixel.c @@ -83,7 +83,8 @@ void cmd_getpixel(uint8_t argc, char **argv) getNumber (argv[0], &x); getNumber (argv[1], &y); - uint16_t value = lcdGetPixel(x, y); + // Get pixel and switch R and B + uint16_t value = drawBGR2RGB(lcdGetPixel(x, y)); // Output the results printf("%d%s", value, CFG_PRINTF_NEWLINE);