We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cc2103 commit 58fb7fbCopy full SHA for 58fb7fb
tmk_core/protocol/nrf/via.c
@@ -188,14 +188,20 @@ void bmp_via_receive_cb(uint8_t *data, uint8_t length) {
188
for (uint8_t row = 0; row < config->matrix.rows;
189
row++) {
190
matrix_row_t value = matrix_get_row(row);
191
+
192
if (config->matrix.cols > 24) {
193
command_data[i++] = (value >> 24) & 0xFF;
- } else if (config->matrix.cols > 16) {
194
+ }
195
196
+ if (config->matrix.cols > 16) {
197
command_data[i++] = (value >> 16) & 0xFF;
- } else if (config->matrix.cols > 8) {
198
199
200
+ if (config->matrix.cols > 8) {
201
command_data[i++] = (value >> 8) & 0xFF;
- } else
- command_data[i++] = value & 0xFF;
202
203
204
+ command_data[i++] = value & 0xFF;
205
}
206
207
break;
0 commit comments