qmk/qmk_firmware

[Bug] Various keyboards contain invalid led config

開放

#17,105 建立於 2022年5月15日

 (0 則留言) (1 個反應) (0 位負責人)C (43,867 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (20,368 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Describe the Bug

With the recently introduced data driven led config, the crude validation has flagged the following keyboards;

⚠ boardsource/beiwagon: led_config: beiwagon.c: Unable to parse g_led_config position data
    22 leds
    18 flags
    12 led position
⚠ ryanskidmore/rskeys100: led_config: rskeys100.c: OOB within g_led_config matrix data
    103 leds
    OOB - led[117] used in config
⚠ melgeek/mj64/rev1: led_config: rev1.c: OOB within g_led_config matrix data

⚠ kbdfans/odin/rgb: led_config: rgb.c: Unable to parse g_led_config position data
    missing position data for 7 leds
⚠ keybee/keybee65: led_config: keybee65.c: Unable to parse g_led_config position data
    missing position data for 19 leds
⚠ mechlovin/hannah60rgb/rev2: led_config: rev2.c: Unable to parse g_led_config position data
    missing position data for 5/8 leds
⚠ handwired/hnah108: led_config: hnah108.c: Unable to parse g_led_config position data
    missing position data for 3/1 leds
⚠ linworks/fave84h: led_config: fave84h.c: Unable to parse g_led_config position data
    missing position data for underglow leds
⚠ linworks/fave87h: led_config: fave87h.c: Unable to parse g_led_config position data
    missing position data for underglow leds

Also, various keyboards contain content that makes it difficult to parse;

MATH
⚠ xelus/dawn60/rev1_qmk: led_config: rev1_qmk.c: Unable to parse g_led_config matrix data
⚠ xelus/pachi/rgb/rev1: led_config: rev1.c: Unable to parse g_led_config matrix data
⚠ xelus/pachi/rgb/rev2: led_config: rev2.c: Unable to parse g_led_config matrix data
⚠ handwired/dygma/raise/ansi: led_config: ansi.c: Unable to parse g_led_config matrix data
⚠ handwired/dygma/raise/iso: led_config: iso.c: Unable to parse g_led_config matrix data

MACROS
⚠ opendeck/32/rev1: led_config: rev1.c: Unable to parse g_led_config position data
    others
⚠ rgbkb/sol/rev2: led_config: rev2.c: Unable to parse g_led_config matrix data
    ifdefs
⚠ rgbkb/pan/rev1/32a: led_config: pan.c: Unable to parse g_led_config position data
    ifdefs
⚠ rgbkb/pan/rev1/proton_c: led_config: pan.c: Unable to parse g_led_config position data
    ifdefs

While warnings may be suppressed for some scenarios in the short term (e.g. use of macros), others (like referencing an led that does not exist) will become hard errors in a next develop cycle. Those keyboards not fixed, will most likely have RGB support removed, or potentially be removed from the repo altogether.

貢獻者指南