aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-01-23 13:55:24 -0500
committerJack Humbert <jack.humb@gmail.com>2017-01-23 13:55:24 -0500
commit841d7e6a1d74b1fc45575ed551132ec27353ebf3 (patch)
tree24f59f81823f36e76c01f6f36e8216b5d3531257
parent6d377bcc9cb417158a71cd78656ca2e1743885b2 (diff)
downloadqmk_firmware-841d7e6a1d74b1fc45575ed551132ec27353ebf3.tar.gz
qmk_firmware-841d7e6a1d74b1fc45575ed551132ec27353ebf3.zip
turn off rgb_midi in ez
-rw-r--r--keyboards/ergodox/ez/config.h2
-rw-r--r--keyboards/ergodox/ez/ez.c8
-rw-r--r--quantum/process_keycode/process_music.c1
3 files changed, 6 insertions, 5 deletions
diff --git a/keyboards/ergodox/ez/config.h b/keyboards/ergodox/ez/config.h
index 6a8c66d7d..e4f95c302 100644
--- a/keyboards/ergodox/ez/config.h
+++ b/keyboards/ergodox/ez/config.h
@@ -49,7 +49,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
49#define RGBLIGHT_SAT_STEP 255 49#define RGBLIGHT_SAT_STEP 255
50#define RGBLIGHT_VAL_STEP 12 50#define RGBLIGHT_VAL_STEP 12
51 51
52#define RGB_MIDI 52// #define RGB_MIDI
53#define RGBW_BB_TWI 53#define RGBW_BB_TWI
54 54
55#define RGBW 1 55#define RGBW 1
diff --git a/keyboards/ergodox/ez/ez.c b/keyboards/ergodox/ez/ez.c
index 039e4c6bb..3e19f2302 100644
--- a/keyboards/ergodox/ez/ez.c
+++ b/keyboards/ergodox/ez/ez.c
@@ -52,9 +52,9 @@ uint8_t init_mcp23018(void) {
52 52
53 // I2C subsystem 53 // I2C subsystem
54 54
55 uint8_t sreg_prev; 55 // uint8_t sreg_prev;
56 sreg_prev=SREG; 56 // sreg_prev=SREG;
57 cli(); 57 // cli();
58 if (i2c_initialized == 0) { 58 if (i2c_initialized == 0) {
59 i2c_init(); // on pins D(1,0) 59 i2c_init(); // on pins D(1,0)
60 i2c_initialized++; 60 i2c_initialized++;
@@ -83,7 +83,7 @@ uint8_t init_mcp23018(void) {
83out: 83out:
84 i2c_stop(); 84 i2c_stop();
85 85
86 SREG=sreg_prev; 86 // SREG=sreg_prev;
87 87
88 return mcp23018_status; 88 return mcp23018_status;
89} 89}
diff --git a/quantum/process_keycode/process_music.c b/quantum/process_keycode/process_music.c
index ca68bef6c..1e2648bff 100644
--- a/quantum/process_keycode/process_music.c
+++ b/quantum/process_keycode/process_music.c
@@ -114,6 +114,7 @@ bool process_music(uint16_t keycode, keyrecord_t *record) {
114 music_sequence_interval+=10; 114 music_sequence_interval+=10;
115 return false; 115 return false;
116 } 116 }
117 #define MUSIC_MODE_GUITAR
117 118
118 #ifdef MUSIC_MODE_CHROMATIC 119 #ifdef MUSIC_MODE_CHROMATIC
119 float freq = ((float)220.0)*pow(2.0, -5.0)*pow(2.0,(music_starting_note + record->event.key.col + music_offset)/12.0+(MATRIX_ROWS - record->event.key.row)); 120 float freq = ((float)220.0)*pow(2.0, -5.0)*pow(2.0,(music_starting_note + record->event.key.col + music_offset)/12.0+(MATRIX_ROWS - record->event.key.row));