From e0580814270c114848479b825852502efca2effc Mon Sep 17 00:00:00 2001 From: mstroh76 Date: Sat, 9 Mar 2024 20:59:24 +0100 Subject: [PATCH] #194 --- wiringPi/wiringPi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiringPi/wiringPi.c b/wiringPi/wiringPi.c index 602c192..28dfe61 100644 --- a/wiringPi/wiringPi.c +++ b/wiringPi/wiringPi.c @@ -929,7 +929,7 @@ const char* GetPiRevision(char* line, int linelength, unsigned int* revision) { return NULL; // read error } Revision = bswap_32(Revision); - snprintf(line, linelength, "Revision\t: %x", Revision); + snprintf(line, linelength, "Revision\t: %04x", Revision); c = &line[11]; *revision = Revision; if (wiringPiDebug)