Subversion Repositories group.electronics

Rev

Rev 105 | Rev 107 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 105 Rev 106
Line 302... Line 302...
302
                pcInt[pcint].mask = 0;
302
                pcInt[pcint].mask = 0;
303
                return;
303
                return;
304
        }
304
        }
305
        // Check which pin caused the interrupt. If they both
305
        // Check which pin caused the interrupt. If they both
306
        //  equal 0, the pin that interrupted is the direction
306
        //  equal 0, the pin that interrupted is the direction
307
        if (rbi(pcInt[pcint].current, PCINT17) == 0 
307
        if (rbi(pcInt[pcint].current, PCINT16) == 0 
308
                && rbi(pcInt[pcint].current, PCINT17) == 0 
308
                && rbi(pcInt[pcint].current, PCINT17) == 0 
309
                && rbi(pcInt[pcint].mask, PCINT16) ) {
309
                && rbi(pcInt[pcint].mask, PCINT16) ) {
310
				
310
				
311
					if (rotary.timer == 0) {
311
					if (rotary.timer == 0) {
312
                        rotary.direction = 1;
312
                        rotary.direction = 1;