summaryrefslogtreecommitdiff
path: root/tmk_core/protocol/arm_atsam/md_rgb_matrix.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-03-03 22:35:51 +0000
committerGitHub <noreply@github.com>2022-03-03 22:35:51 +0000
commit7fb312ccd7d62a151a35ba70decb722aa9193115 (patch)
treef91712b8d54eda77035a4a44cafee877de63d608 /tmk_core/protocol/arm_atsam/md_rgb_matrix.c
parent4a66bdf29443607ae01c1a6c87b657f89d3a1769 (diff)
Fix use of ISSI driver config before init (#16493)
Diffstat (limited to 'tmk_core/protocol/arm_atsam/md_rgb_matrix.c')
-rw-r--r--tmk_core/protocol/arm_atsam/md_rgb_matrix.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tmk_core/protocol/arm_atsam/md_rgb_matrix.c b/tmk_core/protocol/arm_atsam/md_rgb_matrix.c
index 84ce3ee24b..3ed83a44a6 100644
--- a/tmk_core/protocol/arm_atsam/md_rgb_matrix.c
+++ b/tmk_core/protocol/arm_atsam/md_rgb_matrix.c
@@ -206,6 +206,12 @@ void gcr_compute(void) {
}
void issi3733_prepare_arrays(void) {
+ static bool s_init = false;
+ if (s_init) {
+ return;
+ }
+ s_init = true;
+
memset(issidrv, 0, sizeof(issi3733_driver_t) * ISSI3733_DRIVER_COUNT);
int i;