mirror of https://github.com/arendst/Tasmota.git
Prevent crashes on high counter pulse. e.g. AC-Dimmer, Current-Counter...
I had reproducible Hardware Watchdog resets and hangs with the AC-Dimmer, but only if the 100Hz from the main hammered the device. I found this help and change the code. Now the AC-Dimmer is ON for >3days. I assume this change is responsible because it was the only change.
This commit is contained in:
parent
99e52dcfcd
commit
d3dfe6205c
|
@ -673,7 +673,7 @@ typedef struct {
|
||||||
uint8_t ota_loader; // 293
|
uint8_t ota_loader; // 293
|
||||||
unsigned long energy_kWhtoday; // 294
|
unsigned long energy_kWhtoday; // 294
|
||||||
unsigned long energy_kWhtotal; // 298
|
unsigned long energy_kWhtotal; // 298
|
||||||
unsigned long pulse_counter[MAX_COUNTERS]; // 29C
|
volatile unsigned long pulse_counter[MAX_COUNTERS]; // 29C
|
||||||
power_t power; // 2AC
|
power_t power; // 2AC
|
||||||
EnergyUsage energy_usage; // 2B0
|
EnergyUsage energy_usage; // 2B0
|
||||||
unsigned long nextwakeup; // 2C8
|
unsigned long nextwakeup; // 2C8
|
||||||
|
|
Loading…
Reference in New Issue