Browse Source

Fix multiple definition errors for trackball "boards" with no keys (#16350)

pull/16361/head
Ryan 2 years ago
committed by GitHub
parent
commit
ac8bee7091
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 15 deletions
  1. +0
    -1
      keyboards/handwired/aball/aball.c
  2. +1
    -9
      keyboards/handwired/aball/aball.h
  3. +2
    -1
      keyboards/handwired/aball/keymaps/default/keymap.c
  4. +2
    -1
      keyboards/ploopyco/trackball_nano/keymaps/default/keymap.c
  5. +3
    -0
      keyboards/ploopyco/trackball_nano/keymaps/maddie/keymap.c
  6. +0
    -2
      keyboards/ploopyco/trackball_nano/trackball_nano.c
  7. +1
    -1
      keyboards/ploopyco/trackball_nano/trackball_nano.h

+ 0
- 1
keyboards/handwired/aball/aball.c View File

@ -15,4 +15,3 @@
*/
#include "aball.h"
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { };

+ 1
- 9
keyboards/handwired/aball/aball.h View File

@ -18,12 +18,4 @@
#include "quantum.h"
/* This is a shortcut to help you visually see your layout.
*
* The first section contains all of the arguments representing the physical
* layout of the board and position of the keys.
*
* The second converts the arguments into a two-dimensional array which
* represents the switch matrix.
*/
#define LAYOUT(k00) {{ KC_NO }}
#define LAYOUT(k00) {{ k00 }}

+ 2
- 1
keyboards/handwired/aball/keymaps/default/keymap.c View File

@ -15,4 +15,5 @@
*/
#include QMK_KEYBOARD_H
// Dummy
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {{ KC_NO }};

+ 2
- 1
keyboards/ploopyco/trackball_nano/keymaps/default/keymap.c View File

@ -20,4 +20,5 @@
// safe range starts at `PLOOPY_SAFE_RANGE` instead.
// placeholder file so it will compile
// Dummy
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {{ KC_NO }};

+ 3
- 0
keyboards/ploopyco/trackball_nano/keymaps/maddie/keymap.c View File

@ -24,6 +24,9 @@ uint8_t lock_state = 0;
int8_t delta_x = 0;
int8_t delta_y = 0;
// Dummy
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {{ KC_NO }};
void process_mouse_user(report_mouse_t *mouse_report, int8_t x, int8_t y) {
if (scroll_enabled) {
delta_x += x;


+ 0
- 2
keyboards/ploopyco/trackball_nano/trackball_nano.c View File

@ -48,8 +48,6 @@
# define PLOOPY_DPI_DEFAULT 2
#endif
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { };
keyboard_config_t keyboard_config;
uint16_t dpi_array[] = PLOOPY_DPI_OPTIONS;
#define DPI_OPTION_SIZE (sizeof(dpi_array) / sizeof(uint16_t))


+ 1
- 1
keyboards/ploopyco/trackball_nano/trackball_nano.h View File

@ -21,7 +21,7 @@
#include "quantum.h"
#define LAYOUT(k00) {{ KC_NO }}
#define LAYOUT(k00) {{ k00 }}
typedef union {
uint32_t raw;


Loading…
Cancel
Save