Skip to content

Commit

Permalink
restores original keyboard cailbration bounds on HID logs if calibrat…
Browse files Browse the repository at this point in the history
…ion is not pressed
  • Loading branch information
tlietz committed Mar 8, 2024
1 parent b5ad193 commit 8f73669
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions firmware/freedom/freedom.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,18 +131,17 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {

if (calibration_successful()) {
rgblight_reload_from_eeprom();
writePinLow(PICO_LED);
kb_config.calibrated = true;
create_lookup_table(&kb_config, sensor_lookup_table);

kb_config_save();
} else {
if (kb_config.calibrated) {
// return to state before calibration started
rgblight_reload_from_eeprom();
writePinLow(PICO_LED);
eeconfig_read_kb_datablock(&kb_config);
}
}
writePinLow(PICO_LED);
}
return false;
case KC_TOGGLE_RAPID_TRIGGER:
Expand Down
Binary file modified release/freedom/3k/via/gamaphy_freedom_3k_via.uf2
Binary file not shown.

0 comments on commit 8f73669

Please sign in to comment.