From 64715084b2698814fcdaeb578aed3a0d06f277d5 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Thu, 15 Dec 2022 09:56:30 +1100 Subject: [PATCH] Fixup build failures. (#19332) --- keyboards/converter/usb_usb/custom_matrix.cpp | 2 +- keyboards/dztech/tofu/jr/v1/config.h | 2 +- keyboards/exclusive/e6v2/oe/oe.c | 2 +- keyboards/sirius/unigo66/custom_matrix.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/keyboards/converter/usb_usb/custom_matrix.cpp b/keyboards/converter/usb_usb/custom_matrix.cpp index 1463f27b86366ae9b14b1ee4d8e434ec97d2ba62..e94b6b07fbe440e76aceb517c784514649b696b4 100644 --- a/keyboards/converter/usb_usb/custom_matrix.cpp +++ b/keyboards/converter/usb_usb/custom_matrix.cpp @@ -234,6 +234,6 @@ extern "C" { if (kbd3.isReady()) kbd3.SetReport(0, 0, 2, 0, 1, &usb_led); if (kbd4.isReady()) kbd4.SetReport(0, 0, 2, 0, 1, &usb_led); led_set_user(usb_led); - led_update_kb((led_t)usb_led) + led_update_kb((led_t){.raw = usb_led}); } } diff --git a/keyboards/dztech/tofu/jr/v1/config.h b/keyboards/dztech/tofu/jr/v1/config.h index 9c157e366c330fa747b7b9d0db8578ab14e10b26..a05cdacf7995d9f9266987e64e9b32a24ac73dac 100644 --- a/keyboards/dztech/tofu/jr/v1/config.h +++ b/keyboards/dztech/tofu/jr/v1/config.h @@ -17,7 +17,7 @@ #pragma once #define I2C1_SDA_PIN GP2 #define I2C1_SCL_PIN GP3 -#define I2C_DRIVER I2CD2 +#define I2C_DRIVER I2CD1 #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U diff --git a/keyboards/exclusive/e6v2/oe/oe.c b/keyboards/exclusive/e6v2/oe/oe.c index 2570bc101a506345f42ad1bea6d986437af5ce13..abff40c0b21520e00bb41aa455bd8ebd35da2048 100644 --- a/keyboards/exclusive/e6v2/oe/oe.c +++ b/keyboards/exclusive/e6v2/oe/oe.c @@ -9,7 +9,7 @@ bool led_update_kb(led_t led_state) { bool res = led_update_user(led_state); if(res) { writePin(B2, !led_state.caps_lock); - writePin(B6, led_state == 0); + writePin(B6, led_state.raw == 0); } return res; } diff --git a/keyboards/sirius/unigo66/custom_matrix.cpp b/keyboards/sirius/unigo66/custom_matrix.cpp index a399312b7da7e1d428a2d07b4c9ad8b677695a3e..15b30c8177fa933f8ba8e534b494b116b2f515a4 100644 --- a/keyboards/sirius/unigo66/custom_matrix.cpp +++ b/keyboards/sirius/unigo66/custom_matrix.cpp @@ -221,7 +221,7 @@ extern "C" kbd3.SetReport(0, 0, 2, 0, 1, &usb_led); kbd4.SetReport(0, 0, 2, 0, 1, &usb_led); led_set_user(usb_led); - led_update_kb((led_t)usb_led) + led_update_kb((led_t){.raw = usb_led}); } };