forked from mirror/qmk_firmware
Refactor core use of deprecated isLeftHand (#25888)
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "dip_switch.h"
|
||||
|
||||
#ifdef SPLIT_KEYBOARD
|
||||
# include "keyboard.h"
|
||||
# include "split_common/split_util.h"
|
||||
#endif
|
||||
|
||||
@@ -87,7 +88,7 @@ static void dip_switch_exec_mapping(uint8_t index, bool on) {
|
||||
void dip_switch_init(void) {
|
||||
#ifdef DIP_SWITCH_PINS
|
||||
# if defined(SPLIT_KEYBOARD) && defined(DIP_SWITCH_PINS_RIGHT)
|
||||
if (!isLeftHand) {
|
||||
if (!is_keyboard_left()) {
|
||||
const pin_t dip_switch_pad_right[] = DIP_SWITCH_PINS_RIGHT;
|
||||
for (uint8_t i = 0; i < NUM_DIP_SWITCHES; i++) {
|
||||
dip_switch_pad[i] = dip_switch_pad_right[i];
|
||||
|
||||
Reference in New Issue
Block a user