mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-20 22:52:02 +00:00
led fix
This commit is contained in:
parent
78bd57f464
commit
a2b7d34fda
@ -1,4 +1,4 @@
|
|||||||
/* Copyright 2021 OpenAnnePro community
|
/* Copyright 2021 OpenAnnePro community
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -79,7 +79,7 @@ void annepro2LedMaskSetRow(uint8_t row) {
|
|||||||
uint8_t payload[NUM_COLUMN * sizeof(annepro2Led_t) + 1];
|
uint8_t payload[NUM_COLUMN * sizeof(annepro2Led_t) + 1];
|
||||||
payload[0] = row;
|
payload[0] = row;
|
||||||
memcpy(payload + 1, &ledMask[ROWCOL2IDX(row, 0)], sizeof(*ledMask) * NUM_COLUMN);
|
memcpy(payload + 1, &ledMask[ROWCOL2IDX(row, 0)], sizeof(*ledMask) * NUM_COLUMN);
|
||||||
protoTx(CMD_LED_MASK_SET_KEY, payload, sizeof(payload), 1);
|
protoTx(CMD_LED_MASK_SET_ROW, payload, sizeof(payload), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Synchronize all rows */
|
/* Synchronize all rows */
|
||||||
|
Loading…
Reference in New Issue
Block a user