Skip to content

Commit

Permalink
fix scannerGraphic example also
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Nov 26, 2024
1 parent 1fc6ce8 commit 528a871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/scannerGraphic/scannerGraphic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ struct ChannelHistory {
sum += history[i];
}
history[cacheMax - 1] = value;
maxPeak = max(sum * 2, maxPeak); // sum * 2 to allow half-step decay
maxPeak = max((uint8_t)(sum * 2), maxPeak); // sum * 2 to allow half-step decay
return sum;
}

Expand Down

0 comments on commit 528a871

Please sign in to comment.