From ccf1aaa5bede11c95d219adbf6267426b57613d2 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sat, 17 Dec 2022 02:43:41 -0500 Subject: menus move functions with parameters to their own type left the union with function(void) and function_w_param(param) as a few areas might still need to use both (onplay.c) there might be a few I missed yet.. Change-Id: I593a6875301923e19ba04ad1b0f3173dc9ebdf1f --- apps/enc_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/enc_config.c') diff --git a/apps/enc_config.c b/apps/enc_config.c index 65ef65667a..9d83bf7b19 100644 --- a/apps/enc_config.c +++ b/apps/enc_config.c @@ -193,7 +193,7 @@ static bool mp3_enc_bitrate(struct menucallback_data *data) } /* mp3_enc_bitrate */ /* mp3_enc configuration menu */ -MENUITEM_FUNCTION(mp3_bitrate, MENU_FUNC_USEPARAM, ID2P(LANG_BITRATE), +MENUITEM_FUNCTION_W_PARAM(mp3_bitrate, 0, ID2P(LANG_BITRATE), mp3_enc_bitrate, &menu_callback_data, enc_menuitem_callback, Icon_NOICON); MAKE_MENU( mp3_enc_menu, ID2P(LANG_ENCODER_SETTINGS), @@ -286,7 +286,7 @@ static int enc_menuitem_callback(int action, { (void)this_list; struct menucallback_data *data = - (struct menucallback_data*)this_item->function->param; + (struct menucallback_data*)this_item->function_param->param; if (action == ACTION_EXIT_MENUITEM) { -- cgit v1.2.3