Skip to content

Commit

Permalink
fixup! refactor(combos): Reduce RAM usage with bitfields, combo indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Mar 4, 2025
1 parent efc5b45 commit b38945b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/combo.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static const struct combo_cfg combos[] = {
#define COMBO_CHILDREN_COUNT (0 DT_INST_FOREACH_CHILD(0, COMBO_ONE))

// We need at least 4 bytes to avoid alignment issues
#define BYTES_FOR_COMBOS_MASK MAX(4, DIV_ROUND_UP(COMBO_CHILDREN_COUNT, 32))
#define BYTES_FOR_COMBOS_MASK DIV_ROUND_UP(COMBO_CHILDREN_COUNT, 32)

uint8_t pressed_keys_count = 0;
// set of keys pressed
Expand Down

0 comments on commit b38945b

Please sign in to comment.