Skip to content

Commit

Permalink
Remove cast/pointer - fix note
Browse files Browse the repository at this point in the history
Breaks info notes/not required.
Fix the note in the submenu on framerate
  • Loading branch information
XK9274 committed Oct 18, 2023
1 parent 975e769 commit a53cbb0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/tweaks/network.h
Original file line number Diff line number Diff line change
Expand Up @@ -604,10 +604,8 @@ void menu_wifi(void *_)
header_changed = true;
}

void menu_vnc(void *pt)
void menu_vnc(void *_)
{
ListItem *item = (ListItem *)pt;
item->value = (int)network_state.vncserv;
if (!_menu_vnc._created) {
_menu_vnc = list_create(3, LIST_SMALL);
strcpy(_menu_vnc.title, "vnc");
Expand All @@ -630,8 +628,9 @@ void menu_vnc(void *pt)
.value_max = 31,
.value_formatter = formatter_vncFps,
.action = network_setVNCFPS},
"Start a VNC server to view your\n"
"MMP screen remotely\n");
"Set the framerate of the VNC server\n"
"between 1 and 30. The higher the \n"
"framerate the more CPU it will use \n");
}
strcpy(_menu_vnc.items[0].label, ip_address_label);
menu_stack[++menu_level] = &_menu_vnc;
Expand Down

0 comments on commit a53cbb0

Please sign in to comment.