Skip to content

Commit

Permalink
Re-enable IP setting when in client mode with DHCP
Browse files Browse the repository at this point in the history
  • Loading branch information
Master92 committed Nov 20, 2023
1 parent ed58405 commit 52ce3fc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/ui/page_wifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,20 +474,15 @@ static void page_wifi_update_current_page(int which) {
if (page_wifi.page_1.mode.button.current == WIFI_MODE_AP ||
(page_wifi.page_1.mode.button.current == WIFI_MODE_STA &&
page_wifi.page_2.dhcp.button.current == 1)) {
lv_obj_clear_state(page_wifi.page_2.ip_addr.label, STATE_DISABLED);
lv_obj_clear_state(page_wifi.page_2.ip_addr.input, STATE_DISABLED);
lv_obj_clear_state(page_wifi.page_2.netmask.label, STATE_DISABLED);
lv_obj_clear_state(page_wifi.page_2.netmask.input, STATE_DISABLED);
lv_obj_clear_state(page_wifi.page_2.gateway.label, STATE_DISABLED);
lv_obj_clear_state(page_wifi.page_2.gateway.input, STATE_DISABLED);
} else {
lv_obj_add_state(page_wifi.page_2.ip_addr.label, STATE_DISABLED);
lv_obj_add_state(page_wifi.page_2.ip_addr.input, STATE_DISABLED);
lv_obj_add_state(page_wifi.page_2.netmask.label, STATE_DISABLED);
lv_obj_add_state(page_wifi.page_2.netmask.input, STATE_DISABLED);
lv_obj_add_state(page_wifi.page_2.gateway.label, STATE_DISABLED);
lv_obj_add_state(page_wifi.page_2.gateway.input, STATE_DISABLED);
lv_obj_clear_flag(pp_wifi.p_arr.panel[2], FLAG_SELECTABLE);
lv_obj_clear_flag(pp_wifi.p_arr.panel[3], FLAG_SELECTABLE);
lv_obj_clear_flag(pp_wifi.p_arr.panel[4], FLAG_SELECTABLE);
}
Expand Down

0 comments on commit 52ce3fc

Please sign in to comment.