diff --git a/src/main.cpp b/src/main.cpp index 12146af..dc16c34 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -79,6 +79,7 @@ void setup() Serial.begin(115200); Serial.println("ESPMega R3 Initializing . . ."); ESPMega_begin(); + io_begin(); network_begin(); Serial.println("Initializing MQTT . . ."); mqtt_connect(); @@ -99,7 +100,9 @@ void io_begin() { Serial.println("Initializing I/O . . ."); memset(pwm_states, 0, PWM_COUNT); - memset(pwm_values, 255, PWM_COUNT); + for(int i=0;i