This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 68a0621b39 simwifi: Fix a compile error.
68a0621b39 is described below
commit 68a0621b398de070dd8a6fcf77b0f253200e36f0
Author: liqinhui <[email protected]>
AuthorDate: Tue Nov 7 20:23:24 2023 +0800
simwifi: Fix a compile error.
sim/sim_wifidriver.c:569:31: warning: implicit declaration of function
‘hex2num’ [-Wimplicit-function-declaration]
569 | val = hex2num(*pos);
| ^~~~~~~
Signed-off-by: liqinhui <[email protected]>
---
arch/sim/src/sim/sim_wifidriver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/sim/src/sim/sim_wifidriver.c
b/arch/sim/src/sim/sim_wifidriver.c
index bc0d6b4039..52aced6e5d 100644
--- a/arch/sim/src/sim/sim_wifidriver.c
+++ b/arch/sim/src/sim/sim_wifidriver.c
@@ -566,7 +566,7 @@ static size_t wpa_ssid_decode(uint8_t *buf, size_t maxlen,
const char *str)
val = hex2byte(pos);
if (val < 0)
{
- val = hex2num(*pos);
+ val = hex2nibble(*pos);
if (val < 0)
break;
buf[len++] = val;