Skip to content

Commit

Permalink
Swapped rotary encoder direction test to match soldering
Browse files Browse the repository at this point in the history
  • Loading branch information
szczys committed Jan 8, 2014
1 parent 9340c94 commit db5c217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uid_voting/uid_voting.ino
Original file line number Diff line number Diff line change
Expand Up @@ -540,12 +540,12 @@ ISR(PCINT1_vect)
old_AB |= ( ENC_RD & 0x03 );
encval += pgm_read_byte(&(enc_states[( old_AB & 0x0f )]));
/* post "Navigation forward/reverse" event */
if( encval > 3 ) { //four steps forward
if( encval < -3 ) { //four steps forward
incSelOpt();
Serial.print("Up ");Serial.println(selected_option);
encval = 0;
}
else if( encval < -3 ) { //four steps backwards
else if( encval > 3 ) { //four steps backwards
decSelOpt();
Serial.print("Dn ");Serial.println(selected_option);
encval = 0;
Expand Down

0 comments on commit db5c217

Please sign in to comment.