added storing crash in eeprom so can analyze dump

This commit is contained in:
proddy
2019-03-10 22:19:51 +01:00
parent 18ee7cca84
commit 5b0dcc9b22
4 changed files with 203 additions and 24 deletions

View File

@@ -993,7 +993,7 @@ void initEMSESP() {
// call PublishValues without forcing, so using CRC to see if we really need to publish
void do_publishValues() {
// don't publish if we're not connected to the EMS bus
if ((ems_getBusConnected()) && (!myESP.getUseSerial())) {
if ((ems_getBusConnected()) && (!myESP.getUseSerial()) && myESP.isMQTTConnected() ) {
publishValues(false);
}
}