Skip to content

Commit

Permalink
fix datatype
Browse files Browse the repository at this point in the history
  • Loading branch information
jhon-p16 committed Dec 5, 2023
1 parent 7a4039a commit ae6cba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BslibEnergyMeter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void BslibEnergyMeter::SetFilterSamples(unsigned int _numberOfSamples) {
int BslibEnergyMeter::FilterValueADC(unsigned int pinADC) {
unsigned long valueADC = 0;
int filteredValueADC = 0;
for (int i = 0; i < numberOfSamples; i++) {
for (unsigned int i = 0; i < numberOfSamples; i++) {
valueADC += analogRead(pinADC);
}
filteredValueADC = valueADC / numberOfSamples;
Expand Down

0 comments on commit ae6cba4

Please sign in to comment.