wireless/lpwan/rn2xx3: Fix invalid sync word bug.
This commit resolves issue #16009, where a sync word of less than 64 bytes was printed as 0-padded hex. 0-padding is invalid for the RN2xx3 modules, so now it has been removed. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
This commit is contained in:
parent
da982e113e
commit
0cb7bd7f76
1 changed files with 1 additions and 1 deletions
|
|
@ -1165,7 +1165,7 @@ static int rn2xx3_setsync(FAR struct rn2xx3_dev_s *priv, uint64_t sync)
|
|||
|
||||
/* Write actual parameter and end command */
|
||||
|
||||
length = snprintf(syncstr, sizeof(syncstr), "%016llX\r\n", sync);
|
||||
length = snprintf(syncstr, sizeof(syncstr), "%llX\r\n", sync);
|
||||
length = file_write(&priv->uart, syncstr, length);
|
||||
if (length < 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue