Commit 672c396c authored by Robert Foss's avatar Robert Foss
Browse files

Fixed compilation error when the enduser_setup module is disabled yet requires...

Fixed compilation error when the enduser_setup module is disabled yet requires ENDUSER_SETUP_AP_SSID to be defined.
parent 1462d00e
...@@ -640,6 +640,10 @@ static void enduser_setup_ap_start(void) ...@@ -640,6 +640,10 @@ static void enduser_setup_ap_start(void)
struct softap_config cnf; struct softap_config cnf;
c_memset(&(cnf), 0, sizeof(struct softap_config)); c_memset(&(cnf), 0, sizeof(struct softap_config));
#ifndef ENDUSER_SETUP_AP_SSID
#define ENDUSER_SETUP_AP_SSID "SetupGadget"
#endif
char ssid[] = ENDUSER_SETUP_AP_SSID; char ssid[] = ENDUSER_SETUP_AP_SSID;
int ssid_name_len = c_strlen(ENDUSER_SETUP_AP_SSID); int ssid_name_len = c_strlen(ENDUSER_SETUP_AP_SSID);
c_memcpy(&(cnf.ssid), ssid, ssid_name_len); c_memcpy(&(cnf.ssid), ssid, ssid_name_len);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment