aboutsummaryrefslogtreecommitdiff
path: root/quantum/quantum.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r--quantum/quantum.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index b76a11418..1f8ce6c46 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -200,6 +200,9 @@ bool process_record_quantum(keyrecord_t *record) {
200 #ifdef AUDIO_ENABLE 200 #ifdef AUDIO_ENABLE
201 process_audio(keycode, record) && 201 process_audio(keycode, record) &&
202 #endif 202 #endif
203 #ifdef STENO_ENABLE
204 process_steno(keycode, record) &&
205 #endif
203 #if defined(AUDIO_ENABLE) || (defined(MIDI_ENABLE) && defined(MIDI_BASIC)) 206 #if defined(AUDIO_ENABLE) || (defined(MIDI_ENABLE) && defined(MIDI_BASIC))
204 process_music(keycode, record) && 207 process_music(keycode, record) &&
205 #endif 208 #endif
@@ -722,14 +725,14 @@ void backlight_set(uint8_t level)
722 // _SFR_IO8((backlight_pin >> 4) + 2) &= ~_BV(backlight_pin & 0xF); 725 // _SFR_IO8((backlight_pin >> 4) + 2) &= ~_BV(backlight_pin & 0xF);
723 // #endif 726 // #endif
724 #endif 727 #endif
725 } 728 }
726 #ifndef NO_BACKLIGHT_CLOCK 729 #ifndef NO_BACKLIGHT_CLOCK
727 else if ( level == BACKLIGHT_LEVELS ) { 730 else if ( level == BACKLIGHT_LEVELS ) {
728 // Turn on PWM control of backlight pin 731 // Turn on PWM control of backlight pin
729 TCCR1A |= _BV(COM1x1); 732 TCCR1A |= _BV(COM1x1);
730 // Set the brightness 733 // Set the brightness
731 OCR1x = 0xFFFF; 734 OCR1x = 0xFFFF;
732 } 735 }
733 else { 736 else {
734 // Turn on PWM control of backlight pin 737 // Turn on PWM control of backlight pin
735 TCCR1A |= _BV(COM1x1); 738 TCCR1A |= _BV(COM1x1);
@@ -747,7 +750,7 @@ uint8_t backlight_tick = 0;
747 750
748void backlight_task(void) { 751void backlight_task(void) {
749 #ifdef NO_BACKLIGHT_CLOCK 752 #ifdef NO_BACKLIGHT_CLOCK
750 if ((0xFFFF >> ((BACKLIGHT_LEVELS - backlight_config.level) * ((BACKLIGHT_LEVELS + 1) / 2))) & (1 << backlight_tick)) { 753 if ((0xFFFF >> ((BACKLIGHT_LEVELS - backlight_config.level) * ((BACKLIGHT_LEVELS + 1) / 2))) & (1 << backlight_tick)) {
751 #if BACKLIGHT_ON_STATE == 0 754 #if BACKLIGHT_ON_STATE == 0
752 // PORTx &= ~n 755 // PORTx &= ~n
753 _SFR_IO8((backlight_pin >> 4) + 2) &= ~_BV(backlight_pin & 0xF); 756 _SFR_IO8((backlight_pin >> 4) + 2) &= ~_BV(backlight_pin & 0xF);