Skip to content

Commit

Permalink
Update ip_setup.cpp
Browse files Browse the repository at this point in the history
3.5" optimization
  • Loading branch information
OperatorB authored Jan 21, 2024
1 parent 089d314 commit 75afcac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CYD-Klipper/src/ui/ip_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ bool connect_ok = false;
lv_obj_t * ipEntry;
lv_obj_t * portEntry;
lv_obj_t * label = NULL;
static lv_style_t ip_text_style;

void ip_init_inner();

Expand Down Expand Up @@ -71,6 +72,8 @@ static void reset_btn_event_handler(lv_event_t * e){

void ip_init_inner(){
lv_obj_clean(lv_scr_act());
lv_style_set_text_font(&ip_text_style, &lv_font_montserrat_16);
lv_obj_add_style(lv_scr_act(), &ip_text_style, 0);

if (global_config.ipConfigured) {
label = lv_label_create(lv_scr_act());
Expand Down Expand Up @@ -145,4 +148,4 @@ void ip_ok(){
klipper_request_consecutive_fail_count = 0;
lv_msg_send(DATA_PRINTER_STATE, &printer);
}
}
}

0 comments on commit 75afcac

Please sign in to comment.