Skip to content

Commit

Permalink
Fix Error: src/wapi.c:1050:14: error: implicit conversion from enumer…
Browse files Browse the repository at this point in the history
…ation type 'enum wapi_mode_e' to different enumeration type 'enum wapi_pta_prio_e' [-Werror,-Wenum-conversion]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
  • Loading branch information
xiaoxiang781216 authored and pkarashchenko committed Nov 13, 2022
1 parent dd5dbde commit bf03439
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wireless/wapi/src/wapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit bf03439

Please sign in to comment.