Skip to content

Commit 0cb7bd7

Browse files
linguini1acassis
authored andcommitted
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 <[email protected]>
1 parent da982e1 commit 0cb7bd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/wireless/lpwan/rn2xx3/rn2xx3.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ static int rn2xx3_setsync(FAR struct rn2xx3_dev_s *priv, uint64_t sync)
11651165

11661166
/* Write actual parameter and end command */
11671167

1168-
length = snprintf(syncstr, sizeof(syncstr), "%016llX\r\n", sync);
1168+
length = snprintf(syncstr, sizeof(syncstr), "%llX\r\n", sync);
11691169
length = file_write(&priv->uart, syncstr, length);
11701170
if (length < 0)
11711171
{

0 commit comments

Comments
 (0)