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);
}
}

View File

@@ -1508,7 +1508,7 @@ void ems_printAllTypes() {
*/
void ems_doReadCommand(uint8_t type, uint8_t dest, bool forceRefresh) {
// if not a valid type of boiler is not accessible then quits
if (type == EMS_ID_NONE) {
if ( (type == EMS_ID_NONE) || (dest == EMS_ID_NONE) ) {
return;
}