mirror of https://github.com/arendst/Tasmota.git
Skip code not needed on single phase
This commit is contained in:
parent
2969ee91a4
commit
d6c1617fc5
|
@ -44,7 +44,7 @@
|
||||||
* Current measurement device shunt CT CT = Current Transformer
|
* Current measurement device shunt CT CT = Current Transformer
|
||||||
* Common voltage Yes Yes Show common voltage in GUI/JSON
|
* Common voltage Yes Yes Show common voltage in GUI/JSON
|
||||||
* Common frequency Yes Yes Show common frequency in GUI/JSON
|
* Common frequency Yes Yes Show common frequency in GUI/JSON
|
||||||
* Swapped inputs Yes No Current direction defined by hardware design - Fixed by Tasmota
|
* Inverted inputs Yes No Current direction defined by hardware design - Fixed by Tasmota
|
||||||
* Support Zero Cross detection Yes No Tasmota supports zero cross detection only on DualR3 due to timing
|
* Support Zero Cross detection Yes No Tasmota supports zero cross detection only on DualR3 due to timing
|
||||||
* Support Export Active No Yes Only CT supports correct negative value detection
|
* Support Export Active No Yes Only CT supports correct negative value detection
|
||||||
* Show negative power No Yes Only CT supports correct negative value detection
|
* Show negative power No Yes Only CT supports correct negative value detection
|
||||||
|
@ -463,7 +463,9 @@ void Cse7761GetData(void) {
|
||||||
|
|
||||||
for (uint32_t channel = 0; channel < Energy->phase_count; channel++) {
|
for (uint32_t channel = 0; channel < Energy->phase_count; channel++) {
|
||||||
if (CSE7761_MODEL_POWCT == CSE7761Data.model) {
|
if (CSE7761_MODEL_POWCT == CSE7761Data.model) {
|
||||||
|
if (Energy->phase_count > 1) {
|
||||||
Cse7761Write(CSE7761_SPECIAL_COMMAND, (channel) ? CSE7761_CMD_CHAN_B_SELECT : CSE7761_CMD_CHAN_A_SELECT);
|
Cse7761Write(CSE7761_SPECIAL_COMMAND, (channel) ? CSE7761_CMD_CHAN_B_SELECT : CSE7761_CMD_CHAN_A_SELECT);
|
||||||
|
}
|
||||||
CSE7761Data.power_factor[channel] = Cse7761ReadFallback(CSE7761_REG_POWERFACTOR, CSE7761Data.power_factor[channel], 3);
|
CSE7761Data.power_factor[channel] = Cse7761ReadFallback(CSE7761_REG_POWERFACTOR, CSE7761Data.power_factor[channel], 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue