Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/SimpleEMGFilters/SimpleEMGFilters.ino
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ void loop() {
int data = analogRead(SensorInputPin);

// filter processing
int dataAfterFilter = myFilter.update(data);
long dataAfterFilter = myFilter.update(data);

// Get envelope by squaring the input
int envelope = sq(dataAfterFilter);
long envelope = sq(dataAfterFilter);

if (CALIBRATE) {
Serial.print("Squared Data: ");
Expand Down