Fixed compilation error when the enduser_setup module is disabled yet requires ENDUSER_SETUP_AP_SSID to be defined.

This commit is contained in:
Robert Foss 2015-12-20 22:50:36 -05:00
parent 1462d00e9f
commit 672c396c69
1 changed files with 4 additions and 0 deletions

View File

@ -640,6 +640,10 @@ static void enduser_setup_ap_start(void)
struct softap_config cnf;
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;
int ssid_name_len = c_strlen(ENDUSER_SETUP_AP_SSID);
c_memcpy(&(cnf.ssid), ssid, ssid_name_len);