Skip to content

Commit

Permalink
Merge branch 'multi-relays' of https://github.com/FredM67/PVRouter-3-…
Browse files Browse the repository at this point in the history
…phase into multi-relays
  • Loading branch information
FredM67 committed Mar 8, 2024
2 parents f817917 + 8ef9f7b commit 843ad1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev/MathPerfTests/MathPerfTests.ino
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public:

ema_ema_raw = ema_ema_raw - ema_ema + ema;
ema_ema = ema_ema_raw >> round_up_to_power_of_2(A);

}

auto getAverage() const
Expand All @@ -76,7 +77,7 @@ public:

auto getAverageD() const
{
return (ema << 1) - ema_ema;
return ema << 1 - ema_ema;
}

private:
Expand Down

0 comments on commit 843ad1c

Please sign in to comment.