Skip to content

Commit

Permalink
don't let timer1 exist without b5 being enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed Jun 27, 2017
1 parent ea7590c commit 7d28a41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions keyboards/atomic/keymaps/pvc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PIN B7
#define BACKLIGHT_BREATHING

#define C6_AUDIO

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

Expand Down
2 changes: 2 additions & 0 deletions quantum/audio/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ ISR(TIMER3_COMPA_vect)
}
#endif

#ifdef B5_AUDIO
ISR(TIMER1_COMPA_vect)
{
#if defined(B5_AUDIO) && !defined(C6_AUDIO)
Expand Down Expand Up @@ -572,6 +573,7 @@ ISR(TIMER1_COMPA_vect)
}
#endif
}
#endif

void play_note(float freq, int vol) {

Expand Down

0 comments on commit 7d28a41

Please sign in to comment.