Skip to content

Commit

Permalink
Copy unstable manual ssid string
Browse files Browse the repository at this point in the history
  • Loading branch information
suchmememanyskill committed Mar 27, 2024
1 parent 41d0b77 commit f110fee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CYD-Klipper/src/ui/wifi_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ static void wifi_keyboard_cb_manual_ssid(lv_event_t * e){
lv_obj_t * ta = lv_event_get_target(e);
lv_obj_t * kb = (lv_obj_t *)lv_event_get_user_data(e);
const char * text = lv_textarea_get_text(ta);
Serial.println(text);
wifi_pass_entry(text);
char * text_copy = (char*)malloc(strlen(text) + 1);
strcpy(text_copy, text);
Serial.println(text_copy);
wifi_pass_entry(text_copy);
}

static void wifi_btn_manual_ssid(lv_event_t * e){
Expand Down

0 comments on commit f110fee

Please sign in to comment.