Browse Source

Keyboard: fix for debug crkbd (#4469)

epaew 6 years ago
parent
commit
dd7534ccca
2 changed files with 9 additions and 6 deletions
  1. 7 3
      keyboards/crkbd/crkbd.c
  2. 2 3
      keyboards/crkbd/rev1/split_scomm.c

+ 7 - 3
keyboards/crkbd/crkbd.c

@@ -1,6 +1,10 @@
 #include "crkbd.h"
-#include "ssd1306.h" 
+#include "ssd1306.h"
 
 bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
-	return process_record_gfx(keycode,record) && process_record_user(keycode, record);
-}
+#ifdef SSD1306OLED
+  return process_record_gfx(keycode,record) && process_record_user(keycode, record);
+#else
+  return process_record_user(keycode, record);
+#endif
+}

+ 2 - 3
keyboards/crkbd/rev1/split_scomm.c

@@ -63,10 +63,9 @@ int serial_update_buffers(int master_update)
         if( smatstatus == TRANSACTION_END ) {
             s_change_old = s_change_new;
 #ifdef CONSOLE_ENABLE
-            uprintf("slave matrix = %b %b %b %b %b\n",
+            uprintf("slave matrix = %b %b %b %b\n",
                     serial_slave_buffer[0], serial_slave_buffer[1],
-                    serial_slave_buffer[2], serial_slave_buffer[3],
-                    serial_slave_buffer[4] );
+                    serial_slave_buffer[2], serial_slave_buffer[3]);
 #endif
         }
     } else {