diff options
author | Ryan <[email protected]> | 2023-09-14 13:57:10 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-09-14 13:57:10 +1000 |
commit | f9ed1e3ebc66b568a20848ae0f07052fbef5e4a8 (patch) | |
tree | 10284c5b25b8c8c517995b42c23b087a9f6e0ddd /keyboards/fc980c/keymaps | |
parent | 20cbe372a68762e0e09072bc6a3bdd987f7ab988 (diff) | |
download | qmk_firmware-f9ed1e3ebc66b568a20848ae0f07052fbef5e4a8.tar.gz qmk_firmware-f9ed1e3ebc66b568a20848ae0f07052fbef5e4a8.zip |
fc660c/fc980c: clean up actuation point adjustment code (#21964)
Co-authored-by: Joel Challis <[email protected]>
Diffstat (limited to 'keyboards/fc980c/keymaps')
-rw-r--r-- | keyboards/fc980c/keymaps/actuation-point-example/config.h | 8 | ||||
-rw-r--r-- | keyboards/fc980c/keymaps/actuation-point-example/keymap.c | 5 |
2 files changed, 3 insertions, 10 deletions
diff --git a/keyboards/fc980c/keymaps/actuation-point-example/config.h b/keyboards/fc980c/keymaps/actuation-point-example/config.h index c2a538b6ae..a4ecab70fd 100644 --- a/keyboards/fc980c/keymaps/actuation-point-example/config.h +++ b/keyboards/fc980c/keymaps/actuation-point-example/config.h @@ -14,11 +14,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef CONFIG_USER_H -#define CONFIG_USER_H - - -// place overrides here +#pragma once // higher value means deeper actuation point, less sensitive // be careful and only make small adjustments (steps of 1 or 2). @@ -27,5 +23,3 @@ // this should probably stay in the range +/-5. #undef ACTUATION_DEPTH_ADJUSTMENT #define ACTUATION_DEPTH_ADJUSTMENT +1 - -#endif diff --git a/keyboards/fc980c/keymaps/actuation-point-example/keymap.c b/keyboards/fc980c/keymaps/actuation-point-example/keymap.c index 85e782d625..50b6a9ff40 100644 --- a/keyboards/fc980c/keymaps/actuation-point-example/keymap.c +++ b/keyboards/fc980c/keymaps/actuation-point-example/keymap.c @@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include QMK_KEYBOARD_H -#include "actuation_point.h" enum custom_keycodes { @@ -62,12 +61,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) } case AP_READ_RDAC: { - xprintf("RDAC: %d", read_rdac()); + xprintf("RDAC: %d", ad5258_read_rdac()); return false; } case AP_READ_EEPROM: { - xprintf("EEPROM: %d", read_eeprom()); + xprintf("EEPROM: %d", ad5258_read_eeprom()); return false; } |