fixing the check for the phase CT vs. circuit CTs for current scaling - #1
fixing the check for the phase CT vs. circuit CTs for current scaling#1asolochek wants to merge 1 commit into
Conversation
|
You're correct here, the code could also explicitly check for A, B, or C phases to be more clear. const bool is_mains = const double scalar = is_mains this->current_sensor_->publish_state(raw_current_d * scalar); @digiblur are you able to merge this PR? Thanks! |
|
Good Catch! |
Let me try in the morning |
|
Looks like the upstream |
CTInputPort::C is 0, so the correct current scale factor was never being applied to CT A or B.