mirror of https://github.com/arendst/Tasmota.git
Increase max power value for Sonoff Pow R3
Increase max power value for Sonoff Pow R3 (#14156)
This commit is contained in:
parent
45ad78a680
commit
afea9cd4a7
|
@ -20,7 +20,7 @@
|
|||
#ifdef USE_ENERGY_SENSOR
|
||||
#ifdef USE_CSE7766
|
||||
/*********************************************************************************************\
|
||||
* CSE7759 and CSE7766 - Energy (Sonoff S31 and Sonoff Pow R2)
|
||||
* CSE7759 and CSE7766 - Energy (Sonoff S31 and Sonoff Pow R2/R3)
|
||||
* HLW8032 - Energy (Blitzwolf SHP5)
|
||||
*
|
||||
* Needs GPIO_CSE7766_RX only
|
||||
|
@ -203,7 +203,9 @@ void CseEverySecond(void) {
|
|||
uint32_t delta = (cf_pulses * Settings->energy_power_calibration) / 36;
|
||||
// prevent invalid load delta steps even checksum is valid (issue #5789):
|
||||
// prevent invalid load delta steps even checksum is valid but allow up to 4kW (issue #7155):
|
||||
if (delta <= (4000 * 1000 / 36)) { // max load for S31/Pow R2: 4.00kW
|
||||
// if (delta <= (4000 * 1000 / 36)) { // max load for S31/Pow R2: 4.00kW
|
||||
// prevent invalid load delta steps even checksum is valid but allow up to 5.5kW (issue #14156):
|
||||
if (delta <= (5500 * 1000 / 36)) { // max load for Pow R3: 5.50kW
|
||||
Cse.cf_pulses_last_time = Cse.cf_pulses;
|
||||
Energy.kWhtoday_delta[0] += delta;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue