clean up prints
This commit is contained in:
parent
fb6484bdf2
commit
cfd220ea1a
11
src/main.cpp
11
src/main.cpp
|
@ -307,12 +307,6 @@ void eeprom_retrieve_init()
|
||||||
strcat(PWM_VALUE_TOPIC, "/pwm/00/value");
|
strcat(PWM_VALUE_TOPIC, "/pwm/00/value");
|
||||||
memcpy(INPUTS_TOPIC, MQTT_BASE_TOPIC, 20);
|
memcpy(INPUTS_TOPIC, MQTT_BASE_TOPIC, 20);
|
||||||
strcat(INPUTS_TOPIC, "/input/00");
|
strcat(INPUTS_TOPIC, "/input/00");
|
||||||
Serial.println(PWM_STATE_TOPIC);
|
|
||||||
Serial.println(PWM_VALUE_TOPIC);
|
|
||||||
Serial.println(PWM_SET_STATE_TOPIC);
|
|
||||||
Serial.println(PWM_SET_VALUE_TOPIC);
|
|
||||||
Serial.print("BTLEN: ");
|
|
||||||
Serial.println(base_topic_length);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void io_begin()
|
void io_begin()
|
||||||
|
@ -928,9 +922,6 @@ void trigger13()
|
||||||
set_basetopic(panel.readStr("topic_set.txt"));
|
set_basetopic(panel.readStr("topic_set.txt"));
|
||||||
uint16_t port = panel.readNumber("port_set.val");
|
uint16_t port = panel.readNumber("port_set.val");
|
||||||
mqtt_port_set(port);
|
mqtt_port_set(port);
|
||||||
Serial.println("NEWPORT:");
|
|
||||||
Serial.println(port);
|
|
||||||
|
|
||||||
delay(100);
|
delay(100);
|
||||||
ESP.restart();
|
ESP.restart();
|
||||||
}
|
}
|
||||||
|
@ -941,14 +932,12 @@ void eeprom_pwm_update()
|
||||||
{
|
{
|
||||||
memcpy(pwm_states_eeprom, pwm_states, 16);
|
memcpy(pwm_states_eeprom, pwm_states, 16);
|
||||||
ESPMega_EEPROM.writeBlock(3, pwm_states_eeprom, 16);
|
ESPMega_EEPROM.writeBlock(3, pwm_states_eeprom, 16);
|
||||||
Serial.println("EEPROM PWM UPDATE STATE!");
|
|
||||||
lcd_send_stop_bit();
|
lcd_send_stop_bit();
|
||||||
}
|
}
|
||||||
if (memcmp(pwm_values, pwm_values_eeprom, 32))
|
if (memcmp(pwm_values, pwm_values_eeprom, 32))
|
||||||
{
|
{
|
||||||
memcpy(pwm_values_eeprom, pwm_values, 32);
|
memcpy(pwm_values_eeprom, pwm_values, 32);
|
||||||
ESPMega_EEPROM.writeBlock(19, pwm_values_eeprom, 32);
|
ESPMega_EEPROM.writeBlock(19, pwm_values_eeprom, 32);
|
||||||
Serial.println("EEPROM PWM UPDATE VALUE!");
|
|
||||||
lcd_send_stop_bit();
|
lcd_send_stop_bit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue