Permalink
Browse files

Keep the values of unused port pins. Not tested on real hardware.

  • Loading branch information...
1 parent 83348b5 commit 33b16eb3ad9ba27bc818aa0f91ce513ff5b9552c @suovula suovula committed Sep 23, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 driver/AirCore_4_spwm/AirCore_4_spwm.ino
@@ -148,9 +148,9 @@ void loop() {
// Read current time
uint16_t pwmTime = TCNT1 % PwmPulseWidth[PwmFrequencySelector];
- uint8_t portBitsD = 0; //PORTD & ~PortMaskD;
- uint8_t portBitsC = 0; //PORTC & ~PortMaskC;
- uint8_t portBitsB = 0; //PORTB & ~PortMaskB;
+ uint8_t portBitsD = PORTD & ~PortMaskD;
+ uint8_t portBitsC = PORTC & ~PortMaskC;
+ uint8_t portBitsB = PORTB & ~PortMaskB;
uint8_t gauge = 0;

0 comments on commit 33b16eb

Please sign in to comment.