summaryrefslogtreecommitdiff
path: root/keyboards/mschwingen
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/mschwingen')
-rw-r--r--keyboards/mschwingen/modelm/config.h7
-rw-r--r--keyboards/mschwingen/modelm/info.json8
-rw-r--r--keyboards/mschwingen/modelm/modelm.c4
3 files changed, 9 insertions, 10 deletions
diff --git a/keyboards/mschwingen/modelm/config.h b/keyboards/mschwingen/modelm/config.h
index 57ac1c089b..439faf5055 100644
--- a/keyboards/mschwingen/modelm/config.h
+++ b/keyboards/mschwingen/modelm/config.h
@@ -19,13 +19,6 @@
#include "config_common.h"
-/* USB Device descriptor parameter */
-#define VENDOR_ID 0xFEED
-#define PRODUCT_ID 0x558E
-#define DEVICE_VER 0x0001
-#define MANUFACTURER mschwingen
-#define PRODUCT IBM Model M 101/102
-
/* key matrix size */
#define MATRIX_ROWS 16
#define MATRIX_COLS 8
diff --git a/keyboards/mschwingen/modelm/info.json b/keyboards/mschwingen/modelm/info.json
index 3a34f92180..37bdb91160 100644
--- a/keyboards/mschwingen/modelm/info.json
+++ b/keyboards/mschwingen/modelm/info.json
@@ -1,7 +1,13 @@
{
- "keyboard_name": "atmega32U4 board for IBM Model M",
+ "keyboard_name": "IBM Model M 101/102",
+ "manufacturer": "mschwingen",
"url": "",
"maintainer": "mschwingen",
+ "usb": {
+ "vid": "0xFEED",
+ "pid": "0x558E",
+ "device_version": "0.0.1"
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/mschwingen/modelm/modelm.c b/keyboards/mschwingen/modelm/modelm.c
index 7dcd4ac024..0ff58f4be3 100644
--- a/keyboards/mschwingen/modelm/modelm.c
+++ b/keyboards/mschwingen/modelm/modelm.c
@@ -163,8 +163,8 @@ void update_layer_leds(void) {
static uint8_t old_layer = 255;
static uint8_t old_default_layer = 255;
- layer = biton32(layer_state);
- default_layer = biton32(default_layer_state);
+ layer = get_highest_layer(layer_state);
+ default_layer = get_highest_layer(default_layer_state);
if (isRecording && timer_elapsed(blink_cycle_timer) > 150) {
blink_state = !blink_state;