From 2944e938703e2049bb6262a0ab31e701d27e8ab3 Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 1 May 2023 17:37:12 +1000 Subject: Move `USB_MAX_POWER_CONSUMPTION` to data driven (#20648) --- keyboards/ploopyco/mouse/config.h | 2 -- keyboards/ploopyco/mouse/info.json | 3 ++- keyboards/ploopyco/trackball/config.h | 2 -- keyboards/ploopyco/trackball/info.json | 3 ++- keyboards/ploopyco/trackball_mini/config.h | 2 -- keyboards/ploopyco/trackball_mini/info.json | 3 ++- keyboards/ploopyco/trackball_nano/config.h | 2 -- keyboards/ploopyco/trackball_nano/info.json | 3 ++- 8 files changed, 8 insertions(+), 12 deletions(-) (limited to 'keyboards/ploopyco') diff --git a/keyboards/ploopyco/mouse/config.h b/keyboards/ploopyco/mouse/config.h index bc7e587ee7..9747969db4 100644 --- a/keyboards/ploopyco/mouse/config.h +++ b/keyboards/ploopyco/mouse/config.h @@ -23,8 +23,6 @@ #define UNUSABLE_PINS \ { B4, D6, F1, F5, F6, F7 } -#define USB_MAX_POWER_CONSUMPTION 100 - /* disable action features */ //#define NO_ACTION_LAYER //#define NO_ACTION_TAPPING diff --git a/keyboards/ploopyco/mouse/info.json b/keyboards/ploopyco/mouse/info.json index 96b91d89a6..e31a1eb4cd 100644 --- a/keyboards/ploopyco/mouse/info.json +++ b/keyboards/ploopyco/mouse/info.json @@ -6,7 +6,8 @@ "usb": { "vid": "0x5043", "pid": "0x4D6F", - "device_version": "0.0.1" + "device_version": "0.0.1", + "max_power": 100 }, "bootmagic": { "matrix": [0, 3] diff --git a/keyboards/ploopyco/trackball/config.h b/keyboards/ploopyco/trackball/config.h index de94eab9ba..de0ed1ebec 100644 --- a/keyboards/ploopyco/trackball/config.h +++ b/keyboards/ploopyco/trackball/config.h @@ -23,8 +23,6 @@ //#define NO_ACTION_TAPPING //#define NO_ACTION_ONESHOT -#define USB_MAX_POWER_CONSUMPTION 100 - #define ROTATIONAL_TRANSFORM_ANGLE 20 // If board has a debug LED, you can enable it by defining this diff --git a/keyboards/ploopyco/trackball/info.json b/keyboards/ploopyco/trackball/info.json index a1f9c53284..ef6682f9e4 100644 --- a/keyboards/ploopyco/trackball/info.json +++ b/keyboards/ploopyco/trackball/info.json @@ -6,7 +6,8 @@ "usb": { "vid": "0x5043", "pid": "0x5442", - "device_version": "0.0.1" + "device_version": "0.0.1", + "max_power": 100 }, "bootmagic": { "matrix": [0, 3] diff --git a/keyboards/ploopyco/trackball_mini/config.h b/keyboards/ploopyco/trackball_mini/config.h index 2cb236fcd0..789deb5a5f 100644 --- a/keyboards/ploopyco/trackball_mini/config.h +++ b/keyboards/ploopyco/trackball_mini/config.h @@ -24,8 +24,6 @@ //#define NO_ACTION_TAPPING //#define NO_ACTION_ONESHOT -#define USB_MAX_POWER_CONSUMPTION 100 - // If board has a debug LED, you can enable it by defining this // #define DEBUG_LED_PIN F7 diff --git a/keyboards/ploopyco/trackball_mini/info.json b/keyboards/ploopyco/trackball_mini/info.json index e3daea0575..7d040aa5bf 100644 --- a/keyboards/ploopyco/trackball_mini/info.json +++ b/keyboards/ploopyco/trackball_mini/info.json @@ -6,7 +6,8 @@ "usb": { "vid": "0x5043", "pid": "0x1EAB", - "device_version": "0.0.1" + "device_version": "0.0.1", + "max_power": 100 }, "bootmagic": { "matrix": [0, 3] diff --git a/keyboards/ploopyco/trackball_nano/config.h b/keyboards/ploopyco/trackball_nano/config.h index c8e74cc271..e2ebde3263 100644 --- a/keyboards/ploopyco/trackball_nano/config.h +++ b/keyboards/ploopyco/trackball_nano/config.h @@ -24,8 +24,6 @@ //#define NO_ACTION_TAPPING //#define NO_ACTION_ONESHOT -#define USB_MAX_POWER_CONSUMPTION 100 - #define ADNS5050_SCLK_PIN B7 #define ADNS5050_SDIO_PIN C6 #define ADNS5050_CS_PIN B4 diff --git a/keyboards/ploopyco/trackball_nano/info.json b/keyboards/ploopyco/trackball_nano/info.json index 522ff43d99..5295548573 100644 --- a/keyboards/ploopyco/trackball_nano/info.json +++ b/keyboards/ploopyco/trackball_nano/info.json @@ -6,7 +6,8 @@ "usb": { "vid": "0x5043", "pid": "0x54A3", - "device_version": "0.0.1" + "device_version": "0.0.1", + "max_power": 100 }, "processor": "atmega32u4", "bootloader": "atmel-dfu", -- cgit v1.2.3