Skip to content

Commit

Permalink
Update src/main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk authored Aug 20, 2023
1 parent f6806ba commit 4cea6cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ int register_read_uint8(CommandRouter *cmd, int argc, const char **argv) {
return EINVAL;
}
data = ptr[0];
snprintf(cmd->buffer, cmd->buffer_size, "0x%02X", ptr, data);
snprintf(cmd->buffer, cmd->buffer_size, "0x%02X", data);
return 0;
}

Expand Down

0 comments on commit 4cea6cf

Please sign in to comment.