Force some OneShot functions inline

These declarations save some PROGMEM (and probably make things run very slightly
faster).

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1121/head
Michael Richters 3 years ago
parent a1c1fe6ba2
commit a0c62ff0db
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -89,6 +89,7 @@ bool OneShot::isStickable(Key key) const {
return isStickableDefault(key);
}
__attribute__((always_inline)) inline
bool OneShot::isStickableDefault(Key key) const {
int8_t n;
// If the key is either a keyboard modifier or a layer shift, we check to see
@ -369,6 +370,7 @@ void OneShot::holdKey(KeyAddr key_addr) const {
Runtime.handleKeyEvent(event);
}
__attribute__((always_inline)) inline
void OneShot::releaseKey(KeyAddr key_addr) {
glue_addrs_.clear(key_addr);
temp_addrs_.clear(key_addr);

Loading…
Cancel
Save