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:
stefanbode 2020-10-12 12:08:40 +02:00 committed by GitHub
parent 99e52dcfcd
commit d3dfe6205c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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