Skip to content

Commit

Permalink
Merge pull request #392 from micro-manager/ArduinoCounter
Browse files Browse the repository at this point in the history
ArduinoCounter: Fix double counting pulses bug when inverted.
  • Loading branch information
nicost authored Oct 12, 2023
2 parents cd54a39 + 9fb2f52 commit 2b4a0b7
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -104,7 +104,6 @@ void loop() {
if (counting) {
if (invert) {
if (inputWas && !(PIND & B00000100)) {
counter++;
inputWas = LOW;
PORTB = 1;
} else if (!inputWas && (PIND & B00000100)) {

0 comments on commit 2b4a0b7

Please sign in to comment.