Even initialize int

This commit is contained in:
Mathieu Maret 2016-04-14 01:17:37 +02:00
parent 5c8ab4ce97
commit 31e9c04e82
2 changed files with 12 additions and 12 deletions

View File

@ -52,11 +52,11 @@ void WebHandleSetup() {
char *mqttPasswd = "";
int mqttPort = 1883;
int ip_config = 0;
uint32_t ip;
uint32_t gw;
uint32_t mask;
uint32_t dns;
uint32_t dns2;
uint32_t ip = 0;
uint32_t gw = 0;
uint32_t mask = 0;
uint32_t dns = 0;
uint32_t dns2 = 0;
EepromReadConfig(mode, &confSsid, &confPassword, &confHost, &mqttServer, &mqttUser, &mqttPasswd, mqttPort, ip_config, ip, gw, mask, dns, dns2);

View File

@ -184,13 +184,13 @@ void setup() {
char *mqttServer = "";
char *mqttUser = "";
char *mqttPasswd = "";
int mqttPort;
int ip_mode;
uint32_t ip;
uint32_t gw;
uint32_t mask;
uint32_t dns;
uint32_t dns2;
int mqttPort ;
int ip_mode = 0;
uint32_t ip = 0;
uint32_t gw = 0;
uint32_t mask = 0;
uint32_t dns = 0;
uint32_t dns2 = 0;
delay(1000);
SKETCH_DEBUG_INIT(115200);