When a spike was detected in voltage, current, power, energy, or frequency, the code sent previous values but never updated the prev_* variables. This caused the system to get stuck reporting old values indefinitely after any significant measurement change. Now all prev_* variables are always updated after spike detection, ensuring values can change again after being filtered. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
36 KiB
36 KiB