From de8d762534f6134db1b65b8b19b26b8d2168c584 Mon Sep 17 00:00:00 2001 From: Denis Ahrens Date: Sun, 3 Feb 2013 04:00:55 +0100 Subject: [PATCH] SP78 is signed, so print it that way --- smc-command/smc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smc-command/smc.c b/smc-command/smc.c index 2acf9a1..d8f2311 100644 --- a/smc-command/smc.c +++ b/smc-command/smc.c @@ -89,7 +89,7 @@ void printUInt(SMCVal_t val) void printSP78(SMCVal_t val) { - printf("%u.%02u ", *val.bytes, (*(val.bytes+1)) * 100 / 256); + printf("%d.%02u ", (signed char)*val.bytes, (*(val.bytes+1)) * 100 / 256); } void printSI8(SMCVal_t val)