summaryrefslogtreecommitdiffstats
path: root/quantum/quantum.c
diff options
context:
space:
mode:
authorWilba6582 <Jason.S.Williams@gmail.com>2019-03-30 04:24:13 +0100
committerWilba6582 <Jason.S.Williams@gmail.com>2019-03-30 04:24:13 +0100
commitd15bb05c935e378f2e1e912a46c3114697dd00e4 (patch)
tree5d3fcd5cde0cad72f5e9cbf5fc8919ed042418d8 /quantum/quantum.c
parent92c19dae8cfa1bbeeaa447353ac4d7a96e42b330 (diff)
downloadqmk_firmware-d15bb05c935e378f2e1e912a46c3114697dd00e4.tar.gz
qmk_firmware-d15bb05c935e378f2e1e912a46c3114697dd00e4.tar.xz
Added SS_TAP_CODE, SS_DOWN_CODE, SS_UP_CODE
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r--quantum/quantum.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index 46d404029..96760de87 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -900,16 +900,16 @@ void send_string_with_delay(const char *str, uint8_t interval) {
while (1) {
char ascii_code = *str;
if (!ascii_code) break;
- if (ascii_code == 1) {
+ if (ascii_code == SS_TAP_CODE) {
// tap
uint8_t keycode = *(++str);
register_code(keycode);
unregister_code(keycode);
- } else if (ascii_code == 2) {
+ } else if (ascii_code == SS_DOWN_CODE) {
// down
uint8_t keycode = *(++str);
register_code(keycode);
- } else if (ascii_code == 3) {
+ } else if (ascii_code == SS_UP_CODE) {
// up
uint8_t keycode = *(++str);
unregister_code(keycode);
@@ -926,16 +926,16 @@ void send_string_with_delay_P(const char *str, uint8_t interval) {
while (1) {
char ascii_code = pgm_read_byte(str);
if (!ascii_code) break;
- if (ascii_code == 1) {
+ if (ascii_code == SS_TAP_CODE) {
// tap
uint8_t keycode = pgm_read_byte(++str);
register_code(keycode);
unregister_code(keycode);
- } else if (ascii_code == 2) {
+ } else if (ascii_code == SS_DOWN_CODE) {
// down
uint8_t keycode = pgm_read_byte(++str);
register_code(keycode);
- } else if (ascii_code == 3) {
+ } else if (ascii_code == SS_UP_CODE) {
// up
uint8_t keycode = pgm_read_byte(++str);
unregister_code(keycode);