Limit the number of tap-dance keys to 16 max

Limiting the number of keys saves us 20 bytes of SRAM, and almost 200
bytes of program space, and 16 tap-dance keys are still plenty.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/389/head
Gergely Nagy 8 years ago
parent e073402547
commit bab09065ac

@ -24,9 +24,9 @@ namespace KaleidoscopePlugins {
// --- state --- // --- state ---
uint32_t TapDance::endTime; uint32_t TapDance::endTime;
uint16_t TapDance::timeOut = 200; uint16_t TapDance::timeOut = 200;
uint8_t TapDance::tapCount[32]; uint8_t TapDance::tapCount[16];
uint32_t TapDance::pressedState; uint16_t TapDance::pressedState;
uint32_t TapDance::triggeredState; uint16_t TapDance::triggeredState;
Key TapDance::lastTapDanceKey; Key TapDance::lastTapDanceKey;
byte TapDance::lastTapDanceRow; byte TapDance::lastTapDanceRow;
byte TapDance::lastTapDanceCol; byte TapDance::lastTapDanceCol;

@ -49,9 +49,9 @@ namespace KaleidoscopePlugins {
private: private:
static uint32_t endTime; static uint32_t endTime;
static uint8_t tapCount[32]; static uint8_t tapCount[16];
static uint32_t pressedState; static uint16_t pressedState;
static uint32_t triggeredState; static uint16_t triggeredState;
static Key lastTapDanceKey; static Key lastTapDanceKey;
static byte lastTapDanceRow; static byte lastTapDanceRow;
static byte lastTapDanceCol; static byte lastTapDanceCol;

Loading…
Cancel
Save