Mercurial > louis > kiibohd-controller
comparison Scan/DPH/scan_loop.c @ 308:ab4515606277
Fix whitespace
Use a consistent standard - Tabs in front for indenting, spaces after for anything else. This way everything stays nice and lined up while also letting users change there prefered indent level. Most of the new files from Haata where already in this format.
author | Rowan Decker <Smasher816@gmail.com> |
---|---|
date | Sun, 08 Mar 2015 18:40:01 -0700 |
parents | 2a4c99da1276 |
children | ad693d70c292 |
comparison
equal
deleted
inserted
replaced
305:4617ef5e06f1 | 308:ab4515606277 |
---|---|
607 | 607 |
608 PORTC &= ~C_MASK; | 608 PORTC &= ~C_MASK; |
609 PORTD &= ~D_MASK; | 609 PORTD &= ~D_MASK; |
610 PORTE &= ~E_MASK; | 610 PORTE &= ~E_MASK; |
611 | 611 |
612 DDRB |= (1 << RECOVERY_SINK); // SINK pull | 612 DDRB |= (1 << RECOVERY_SINK); // SINK pull |
613 PORTB |= (1 << RECOVERY_CONTROL); | 613 PORTB |= (1 << RECOVERY_CONTROL); |
614 PORTB |= (1 << RECOVERY_SOURCE); // SOURCE high | 614 PORTB |= (1 << RECOVERY_SOURCE); // SOURCE high |
615 DDRB |= (1 << RECOVERY_SOURCE); | 615 DDRB |= (1 << RECOVERY_SOURCE); |
616 } | 616 } |
617 else | 617 else |
618 { | 618 { |
619 PORTB &= ~(1 << RECOVERY_CONTROL); | 619 PORTB &= ~(1 << RECOVERY_CONTROL); |
620 DDRB &= ~(1 << RECOVERY_SOURCE); | 620 DDRB &= ~(1 << RECOVERY_SOURCE); |
621 PORTB &= ~(1 << RECOVERY_SOURCE); // SOURCE low | 621 PORTB &= ~(1 << RECOVERY_SOURCE); // SOURCE low |
622 DDRB &= ~(1 << RECOVERY_SINK); // SINK high-imp | 622 DDRB &= ~(1 << RECOVERY_SINK); // SINK high-imp |
623 } | 623 } |
624 } | 624 } |
625 | 625 |
626 | 626 |
627 void hold_sample( uint8_t on ) | 627 void hold_sample( uint8_t on ) |