From 04c430e31bcc2f3c2eacd6c1b95daf114ea8a2ae Mon Sep 17 00:00:00 2001 From: Ksaper Date: Thu, 9 Sep 2021 05:20:32 +0300 Subject: [PATCH] Add a logging message for when openrgb is not enabled in the firmware --- .../QMKOpenRGBController/QMKOpenRGBControllerDetect.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Controllers/QMKOpenRGBController/QMKOpenRGBControllerDetect.cpp b/Controllers/QMKOpenRGBController/QMKOpenRGBControllerDetect.cpp index 29b2f764..9fffb0b4 100644 --- a/Controllers/QMKOpenRGBController/QMKOpenRGBControllerDetect.cpp +++ b/Controllers/QMKOpenRGBController/QMKOpenRGBControllerDetect.cpp @@ -94,7 +94,12 @@ void DetectQMKOpenRGBControllers(hid_device_info *info, const std::string&) } break; default: - if (version < QMK_OPENRGB_PROTOCOL_VERSION_9) + if (version == 0) + { + LOG_WARNING("[QMK OpenRGB] Detection failed - the detected keyboard does not have the OpenRGB protocol feature enabled! \n" + "Please make sure your keyboard supports RGB Matrix, add OPENRGB_ENABLE = yes to the rules.mk inside your keymap folder, compile and flash again!"); + } + else if (version < QMK_OPENRGB_PROTOCOL_VERSION_9) { LOG_WARNING("[QMK OpenRGB] Detection failed - the detected keyboard is using an outdated protocol version %i. Please update to to the update to the latest version of QMK-OpenRGB! \n" "For officaly supported QMK boards grab url \n"