From bf03439d1ba6288464f413c631e5dcfaec501d3f Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 13 Nov 2022 10:59:52 +0800 Subject: [PATCH] Fix Error: src/wapi.c:1050:14: error: implicit conversion from enumeration type 'enum wapi_mode_e' to different enumeration type 'enum wapi_pta_prio_e' [-Werror,-Wenum-conversion] Signed-off-by: Xiang Xiao --- wireless/wapi/src/wapi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wireless/wapi/src/wapi.c b/wireless/wapi/src/wapi.c index 191cc4b97..84a5b9ee5 100644 --- a/wireless/wapi/src/wapi.c +++ b/wireless/wapi/src/wapi.c @@ -1047,7 +1047,8 @@ static int wapi_pta_prio_cmd(int sock, int argc, FAR char **argv) /* Convert input strings to values */ - pta_prio = (enum wapi_mode_e)wapi_str2ndx(argv[1], g_wapi_pta_prio_flags); + pta_prio = (enum wapi_pta_prio_e) + wapi_str2ndx(argv[1], g_wapi_pta_prio_flags); /* Set operating mode */