From a53cbb0981d5f3041542a40eecfafb6d0f473d6b Mon Sep 17 00:00:00 2001 From: XK <47260768+XK9274@users.noreply.github.com> Date: Wed, 18 Oct 2023 22:56:12 +0100 Subject: [PATCH] Remove cast/pointer - fix note Breaks info notes/not required. Fix the note in the submenu on framerate --- src/tweaks/network.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/tweaks/network.h b/src/tweaks/network.h index 2b4a900cd8..8d8a929841 100644 --- a/src/tweaks/network.h +++ b/src/tweaks/network.h @@ -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"); @@ -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;