]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix of #2094
authorMikkel Jeppesen <{dumle29}@users.noreply.github.com>
Sat, 30 Dec 2017 13:15:28 +0000 (14:15 +0100)
committerJack Humbert <jack.humb@gmail.com>
Mon, 1 Jan 2018 03:46:31 +0000 (22:46 -0500)
quantum/audio/audio.c

index 29bad8060b8fdde5a7b380393ba7e5146c099492..85220e16307115bb4db4052e849feab99ced0dd6 100644 (file)
@@ -151,16 +151,16 @@ void audio_init()
 
         #ifdef C6_AUDIO
             DDRC |= _BV(PORTC6);
-        #else
-            DDRC |= _BV(PORTC6);
-            PORTC &= ~_BV(PORTC6);
+        //#else
+        //    DDRC |= _BV(PORTC6); // Why is PC6 being set as output low, if C6_audio isn't defined?
+        //    PORTC &= ~_BV(PORTC6); 
         #endif
 
         #ifdef B5_AUDIO
             DDRB |= _BV(PORTB5);
-        #else
-            DDRB |= _BV(PORTB5);
-            PORTB &= ~_BV(PORTB5);
+        //#else
+        //    DDRB |= _BV(PORTB5); // Same as with PC6
+        //    PORTB &= ~_BV(PORTB5);
         #endif
 
         #ifdef C6_AUDIO