Skip to content

Commit

Permalink
Fix accidentally clearing calibration flags
Browse files Browse the repository at this point in the history
  • Loading branch information
arkku committed Aug 11, 2022
1 parent 9ff8364 commit 42f8c96
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion xwhatsit_core/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,6 @@ void matrix_init_kb(void) {

#if CAPSENSE_CAL_AUTOSAVE
if (!(cal_flags & (CAPSENSE_CAL_FLAG_UNRELIABLE | CAPSENSE_CAL_FLAG_LOADED | CAPSENSE_CAL_FLAG_SAVED))) {
cal_flags = 0;
for (int_fast8_t bin = 0; bin < CAPSENSE_CAL_BINS; ++bin) {
if (cal_bin_key_count[bin] >= 1 && cal_bin_key_count[bin] <= 4) {
// Suspicious calibration result, maybe held keys or misconfig
Expand Down

0 comments on commit 42f8c96

Please sign in to comment.