From dcebc836fbfe5e0e12b8f1eb9f482bf6035350c7 Mon Sep 17 00:00:00 2001 From: Kevin Townsend Date: Fri, 23 Mar 2012 05:57:34 +0100 Subject: [PATCH] Changed output from dec to hex --- project/commands/drawing/cmd_pixel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1