Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mstroh76 committed Mar 9, 2024
1 parent 89dad15 commit e058081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiringPi/wiringPi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e058081

Please sign in to comment.