Run clang-format manually to fix recently changed files (#8552)

This commit is contained in:
Joel Challis 2020-03-25 03:39:53 +00:00 committed by GitHub
parent 5075a1d9e4
commit 6ceaae30f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 39 additions and 43 deletions

View file

@ -111,7 +111,6 @@ const point_t k_rgb_matrix_center = RGB_MATRIX_CENTER;
# define RGB_MATRIX_STARTUP_SPD UINT8_MAX / 2
#endif
bool g_suspend_state = false;
rgb_config_t rgb_matrix_config;

View file

@ -34,7 +34,6 @@ bool wpm_keycode(uint16_t keycode) { return wpm_keycode_kb(keycode); }
__attribute__((weak)) bool wpm_keycode_kb(uint16_t keycode) { return wpm_keycode_user(keycode); }
__attribute__((weak)) bool wpm_keycode_user(uint16_t keycode) {
if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) || (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX) || (keycode >= QK_MODS && keycode <= QK_MODS_MAX)) {
keycode = keycode & 0xFF;
} else if (keycode > 0xFF) {
@ -47,7 +46,6 @@ __attribute__((weak)) bool wpm_keycode_user(uint16_t keycode) {
return false;
}
void update_wpm(uint16_t keycode) {
if (wpm_keycode(keycode)) {
if (wpm_timer > 0) {
@ -60,8 +58,7 @@ void update_wpm(uint16_t keycode) {
void decay_wpm(void) {
if (timer_elapsed(wpm_timer) > 1000) {
current_wpm = (0 - current_wpm) * wpm_smoothing +
current_wpm;
current_wpm = (0 - current_wpm) * wpm_smoothing + current_wpm;
wpm_timer = timer_read();
}
}