Format code according to conventions (#16322)
This commit is contained in:
parent
afcdd7079c
commit
63646e8906
345 changed files with 4916 additions and 3229 deletions
|
@ -13,7 +13,9 @@
|
|||
#define TYPING_SPEED_MAX_VALUE 200
|
||||
uint8_t typing_speed = 0;
|
||||
|
||||
bool velocikey_enabled(void) { return eeprom_read_byte(EECONFIG_VELOCIKEY) == 1; }
|
||||
bool velocikey_enabled(void) {
|
||||
return eeprom_read_byte(EECONFIG_VELOCIKEY) == 1;
|
||||
}
|
||||
|
||||
void velocikey_toggle(void) {
|
||||
if (velocikey_enabled())
|
||||
|
@ -39,4 +41,6 @@ void velocikey_decelerate(void) {
|
|||
}
|
||||
}
|
||||
|
||||
uint8_t velocikey_match_speed(uint8_t minValue, uint8_t maxValue) { return MAX(minValue, maxValue - (maxValue - minValue) * ((float)typing_speed / TYPING_SPEED_MAX_VALUE)); }
|
||||
uint8_t velocikey_match_speed(uint8_t minValue, uint8_t maxValue) {
|
||||
return MAX(minValue, maxValue - (maxValue - minValue) * ((float)typing_speed / TYPING_SPEED_MAX_VALUE));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue