[Keyboard] Fix error_log complaint about handwired/onekey layout macro (#9263)
This commit is contained in:
parent
d7523c1260
commit
407d6a2b67
10 changed files with 44 additions and 50 deletions
|
@ -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);
|
||||
// };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue