aboutsummaryrefslogtreecommitdiff
path: root/keyboards/helix/pico/pico.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/helix/pico/pico.h')
-rw-r--r--keyboards/helix/pico/pico.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/keyboards/helix/pico/pico.h b/keyboards/helix/pico/pico.h
index 5fa5f7295..3e51d54d8 100644
--- a/keyboards/helix/pico/pico.h
+++ b/keyboards/helix/pico/pico.h
@@ -1,12 +1,22 @@
1/* Copyright 2018 MakotoKurauchi
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
1#pragma once 16#pragma once
2 17
3#include "helix.h" 18#include "helix.h"
4 19
5#ifndef SPLIT_KEYBOARD
6 extern bool is_helix_master(void);
7 #define is_keyboard_master() is_helix_master()
8#endif
9
10// Each keymap.c should use is_keyboard_master() instead of 'is_master', 'has_usb()'. 20// Each keymap.c should use is_keyboard_master() instead of 'is_master', 'has_usb()'.
11// But keep 'is_master' for a while for backwards compatibility 21// But keep 'is_master' for a while for backwards compatibility
12// for the old keymap.c. 22// for the old keymap.c.