mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 17:29:50 +03:00
added storing crash in eeprom so can analyze dump
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user