summaryrefslogtreecommitdiffstats
path: root/keyboard/ergodox_ez/ergodox_ez.c
diff options
context:
space:
mode:
authoryoyoerx <kevin.wepasnick@gmail.com>2016-03-10 11:28:34 -0500
committeryoyoerx <kevin.wepasnick@gmail.com>2016-03-10 11:28:34 -0500
commit641859df84bf40025b2c14319d1a168a435562e2 (patch)
tree006e8cdd6bef18921b3c4e5cf7cebda67da27779 /keyboard/ergodox_ez/ergodox_ez.c
parent7d3ebd7b40b96f576fe4608b33f47329c334925b (diff)
Addressed void* return warning in all keymaps
Diffstat (limited to 'keyboard/ergodox_ez/ergodox_ez.c')
-rw-r--r--keyboard/ergodox_ez/ergodox_ez.c33
1 files changed, 12 insertions, 21 deletions
diff --git a/keyboard/ergodox_ez/ergodox_ez.c b/keyboard/ergodox_ez/ergodox_ez.c
index d0eaf33923..97e6de1ee3 100644
--- a/keyboard/ergodox_ez/ergodox_ez.c
+++ b/keyboard/ergodox_ez/ergodox_ez.c
@@ -5,16 +5,16 @@ bool i2c_initialized = 0;
uint8_t mcp23018_status = 0x20;
__attribute__ ((weak))
-void * matrix_init_user(void) {
- return NULL;
-};
+void matrix_init_user(void) {
+
+}
__attribute__ ((weak))
-void * matrix_scan_user(void) {
- return NULL;
-};
+void matrix_scan_user(void) {
+
+}
-void * matrix_init_kb(void) {
+void matrix_init_kb(void) {
// keyboard LEDs (see "PWM on ports OC1(A|B|C)" in "teensy-2-0.md")
TCCR1A = 0b10101001; // set and configure fast PWM
TCCR1B = 0b00001001; // set and configure fast PWM
@@ -34,21 +34,12 @@ void * matrix_init_kb(void) {
ergodox_blink_all_leds();
- if (matrix_init_user) {
- (*matrix_init_user)();
- }
-
- return NULL;
-};
-
-void * matrix_scan_kb(void) {
-
- if (matrix_scan_user) {
- (*matrix_scan_user)();
- }
+ matrix_init_user();
+}
- return NULL;
-};
+void matrix_scan_kb(void) {
+ matrix_scan_user();
+}
void ergodox_blink_all_leds(void)