Skip to content

Commit

Permalink
[xrock]update version string
Browse files Browse the repository at this point in the history
  • Loading branch information
jianjunjiang committed Aug 4, 2021
1 parent 1fb0364 commit e4870d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ int main(int argc, char * argv[])
{
uint8_t buf[16];
if(rock_version(&ctx, buf))
printf("%s: 0x%02x%02x%02x%02x 0x%02x%02x%02x%02x 0x%02x%02x%02x%02x 0x%02x%02x%02x%02x\r\n", ctx.chip->name,
printf("%s(%c%c%c%c): 0x%02x%02x%02x%02x 0x%02x%02x%02x%02x 0x%02x%02x%02x%02x 0x%02x%02x%02x%02x\r\n", ctx.chip->name,
buf[ 3], buf[ 2], buf[ 1], buf[ 0],
buf[ 3], buf[ 2], buf[ 1], buf[ 0],
buf[ 7], buf[ 6], buf[ 5], buf[ 4],
buf[11], buf[10], buf[ 9], buf[ 8],
Expand Down

0 comments on commit e4870d1

Please sign in to comment.