summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/onekey/keymaps/adc/keymap.c
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-06-08 15:49:18 +1000
committerGitHub <noreply@github.com>2020-06-07 22:49:18 -0700
commit407d6a2b6779aa7ef4f87b53521aef3c3854f824 (patch)
tree1356662030acaa56347ce4b56fab3fd127d8f9fa /keyboards/handwired/onekey/keymaps/adc/keymap.c
parentd7523c1260d3154a16d223060a24e32d18ebb1a2 (diff)
[Keyboard] Fix error_log complaint about handwired/onekey layout macro (#9263)
Diffstat (limited to 'keyboards/handwired/onekey/keymaps/adc/keymap.c')
-rw-r--r--keyboards/handwired/onekey/keymaps/adc/keymap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/handwired/onekey/keymaps/adc/keymap.c b/keyboards/handwired/onekey/keymaps/adc/keymap.c
index 6626894fac..00238b8e6c 100644
--- a/keyboards/handwired/onekey/keymaps/adc/keymap.c
+++ b/keyboards/handwired/onekey/keymaps/adc/keymap.c
@@ -7,7 +7,7 @@ enum custom_keycodes {
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- LAYOUT(ADC_SAMPLE) //
+ LAYOUT_ortho_1x1(ADC_SAMPLE)
};
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
@@ -16,7 +16,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (record->event.pressed) {
int16_t val = analogReadPin(ADC_PIN);
- char buffer [50];
+ char buffer[50];
sprintf(buffer, "ADC:%u\n", val);
#ifdef CONSOLE_ENABLE
printf(buffer);
@@ -30,5 +30,5 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
};
// adc_mux pinToMux(pin_t pin) {
-// return TO_MUX( ADC_CHANNEL_IN1, 0 );
+// return TO_MUX(ADC_CHANNEL_IN1, 0);
// };