aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/handwired
diff options
context:
space:
mode:
authorGravatar Priyadi Iman Nurcahyo <priyadi@users.noreply.github.com>2019-04-29 23:33:13 +0700
committerGravatar Drashna Jaelre <drashna@live.com>2019-04-29 09:33:13 -0700
commit36e950a13fb0368a89c644fdfb28263326018cdd (patch)
treed8eea878068d63733675824d1e48435514d24146 /keyboards/handwired
parentb23c3b0fd61c311b429fb1b3391248bf9df2e25d (diff)
downloadqmk_firmware-36e950a13fb0368a89c644fdfb28263326018cdd.tar.gz
[Keymap] Added compatibility for Planck rev6 (#5706)
* Update code for compatibility with latest QMK * Added compatibility with Planck rev6 * use wait_ms instead of _delay_ms * removed unnecessary rules * disable audio on rev4 only
Diffstat (limited to 'keyboards/handwired')
-rw-r--r--keyboards/handwired/promethium/keymaps/default/keymap.c2
-rw-r--r--keyboards/handwired/promethium/keymaps/priyadi/keymap.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/keyboards/handwired/promethium/keymaps/default/keymap.c b/keyboards/handwired/promethium/keymaps/default/keymap.c
index 179b411ee..b09e30457 100644
--- a/keyboards/handwired/promethium/keymaps/default/keymap.c
+++ b/keyboards/handwired/promethium/keymaps/default/keymap.c
@@ -1277,7 +1277,7 @@ void set_output_user(uint8_t output) {
}
void matrix_init_user() {
- _delay_ms(500); // give time for usb to initialize
+ wait_ms(500); // give time for usb to initialize
set_unicode_input_mode(UC_LNX);
diff --git a/keyboards/handwired/promethium/keymaps/priyadi/keymap.c b/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
index 179b411ee..fbb1ae1d6 100644
--- a/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
+++ b/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
@@ -53,7 +53,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
} while (0)
#endif
#endif
+#ifdef __AVR__
#include "outputselect.h"
+#endif
#include "led.h"
#define COUNT(x) (sizeof (x) / sizeof (*(x)))
@@ -1277,7 +1279,7 @@ void set_output_user(uint8_t output) {
}
void matrix_init_user() {
- _delay_ms(500); // give time for usb to initialize
+ wait_ms(500); // give time for usb to initialize
set_unicode_input_mode(UC_LNX);