Skip to content

Commit

Permalink
Reduce includes for dip_switch header (qmk#18951)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored and ramonimbao committed Nov 28, 2022
1 parent 13fdd28 commit e71f31a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions quantum/dip_switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <string.h> // for memcpy

#include "dip_switch.h"
#include "gpio.h"
#include "util.h"

#ifdef SPLIT_KEYBOARD
# include "split_common/split_util.h"
#endif

// for memcpy
#include <string.h>

#if !defined(DIP_SWITCH_PINS) && !defined(DIP_SWITCH_MATRIX_GRID)
# error "Either DIP_SWITCH_PINS or DIP_SWITCH_MATRIX_GRID must be defined."
#endif
Expand Down
3 changes: 2 additions & 1 deletion quantum/dip_switch.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

#pragma once

#include "quantum.h"
#include <stdbool.h>
#include <stdint.h>

bool dip_switch_update_kb(uint8_t index, bool active);
bool dip_switch_update_user(uint8_t index, bool active);
Expand Down

0 comments on commit e71f31a

Please sign in to comment.