From: Kevin Townsend Date: Fri, 23 Mar 2012 04:57:34 +0000 (+0100) Subject: Changed output from dec to hex X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/commitdiff_plain/dcebc836fbfe5e0e12b8f1eb9f482bf6035350c7 Changed output from dec to hex --- diff --git a/project/commands/drawing/cmd_pixel.c b/project/commands/drawing/cmd_pixel.c index 9acbdd7..0055aaa 100644 --- a/project/commands/drawing/cmd_pixel.c +++ b/project/commands/drawing/cmd_pixel.c @@ -87,7 +87,7 @@ void cmd_getpixel(uint8_t argc, char **argv) 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