X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/a7be12a4e68fcaaa92f81a394bc316a592ec6270..277c38b5c941330bcba626fd3c22dfba0e0e0be4:/project/commands/drawing/cmd_pixel.c diff --git a/project/commands/drawing/cmd_pixel.c b/project/commands/drawing/cmd_pixel.c index cdc118f..0055aaa 100644 --- a/project/commands/drawing/cmd_pixel.c +++ b/project/commands/drawing/cmd_pixel.c @@ -84,10 +84,10 @@ void cmd_getpixel(uint8_t argc, char **argv) getNumber (argv[1], &y); // Get pixel and switch R and B - uint16_t value = drawBGR2RGB(lcdGetPixel(x, y)); + uint16_t value = colorsBGR2RGB(lcdGetPixel(x, y)); // Output the results - printf("%d%s", value, CFG_PRINTF_NEWLINE); + printf("0x%04X%s", value, CFG_PRINTF_NEWLINE); } #endif