diff options
author | Eric Tang <e_l_tang@outlook.com> | 2016-06-03 12:48:40 -0700 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-06-03 15:48:40 -0400 |
commit | 794aed37a0da5a277a07e7fa86263e0852fa9f6d (patch) | |
tree | f7fe97e9edd3c8c04839dafd199616572be51e25 /quantum/quantum.h | |
parent | cc3972e7d6338febb306b384b939f5494ff8cdf9 (diff) | |
download | qmk_firmware-794aed37a0da5a277a07e7fa86263e0852fa9f6d.tar.gz qmk_firmware-794aed37a0da5a277a07e7fa86263e0852fa9f6d.zip |
Improve string sending (#376)
Diffstat (limited to 'quantum/quantum.h')
-rw-r--r-- | quantum/quantum.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/quantum/quantum.h b/quantum/quantum.h index 786bcb2383..69277b9e32 100644 --- a/quantum/quantum.h +++ b/quantum/quantum.h @@ -1,6 +1,7 @@ #ifndef QUANTUM_H #define QUANTUM_H +#include <avr/pgmspace.h> #include "matrix.h" #include "keymap_common.h" #ifdef BACKLIGHT_ENABLE @@ -25,6 +26,8 @@ #include <avr/io.h> #include <util/delay.h> +#define SEND_STRING(str) send_string(PSTR(str)) + extern uint32_t default_layer_state; #ifndef NO_ACTION_LAYER @@ -59,7 +62,7 @@ extern uint32_t default_layer_state; #define LEADER_DICTIONARY() if (leading && timer_elapsed(leader_time) > LEADER_TIMEOUT) #endif -void send_string(char str[]); +void send_string(const char *str); void matrix_init_kb(void); void matrix_scan_kb(void); @@ -79,4 +82,4 @@ void audio_on_user(void); void music_on_user(void); void music_scale_user(void); -#endif
\ No newline at end of file +#endif |