diff options
| author | Fred Sundvik <fsundvik@gmail.com> | 2017-07-09 14:03:36 +0300 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2017-07-10 09:01:59 -0400 |
| commit | 8a962f7b271e965fa69eeb9aeab23a5969669984 (patch) | |
| tree | 95f6e8c616f4a5f0c28a0dc589502ada3923d364 | |
| parent | 011ee294414800eaa18ce7c3f9447054d9eae765 (diff) | |
| download | qmk_firmware-8a962f7b271e965fa69eeb9aeab23a5969669984.tar.gz qmk_firmware-8a962f7b271e965fa69eeb9aeab23a5969669984.zip | |
Define visualizer thread priority by default
| -rw-r--r-- | keyboards/ergodox/infinity/config.h | 2 | ||||
| -rw-r--r-- | keyboards/whitefox/config.h | 4 | ||||
| -rw-r--r-- | quantum/visualizer/visualizer.c | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/keyboards/ergodox/infinity/config.h b/keyboards/ergodox/infinity/config.h index 25cc8af0f..fa157a893 100644 --- a/keyboards/ergodox/infinity/config.h +++ b/keyboards/ergodox/infinity/config.h | |||
| @@ -51,8 +51,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 51 | 51 | ||
| 52 | #define SERIAL_LINK_BAUD 562500 | 52 | #define SERIAL_LINK_BAUD 562500 |
| 53 | #define SERIAL_LINK_THREAD_PRIORITY (NORMALPRIO - 1) | 53 | #define SERIAL_LINK_THREAD_PRIORITY (NORMALPRIO - 1) |
| 54 | // The visualizer needs gfx thread priorities | ||
| 55 | #define VISUALIZER_THREAD_PRIORITY (NORMAL_PRIORITY - 2) | ||
| 56 | 54 | ||
| 57 | #define VISUALIZER_USER_DATA_SIZE 16 | 55 | #define VISUALIZER_USER_DATA_SIZE 16 |
| 58 | 56 | ||
diff --git a/keyboards/whitefox/config.h b/keyboards/whitefox/config.h index 08de9b9aa..76040bd74 100644 --- a/keyboards/whitefox/config.h +++ b/keyboards/whitefox/config.h | |||
| @@ -87,6 +87,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 87 | #define LED_DISPLAY_NUMBER 0 | 87 | #define LED_DISPLAY_NUMBER 0 |
| 88 | 88 | ||
| 89 | #define LED_NUM_ROWS 5 | 89 | #define LED_NUM_ROWS 5 |
| 90 | #define LED_NUM_COLS 16 | 90 | #define LED_NUM_COLS 16 \ No newline at end of file |
| 91 | |||
| 92 | #define VISUALIZER_THREAD_PRIORITY (NORMAL_PRIORITY - 2) | ||
diff --git a/quantum/visualizer/visualizer.c b/quantum/visualizer/visualizer.c index cc99d1e3b..68b86f590 100644 --- a/quantum/visualizer/visualizer.c +++ b/quantum/visualizer/visualizer.c | |||
| @@ -52,7 +52,8 @@ SOFTWARE. | |||
| 52 | 52 | ||
| 53 | // Define this in config.h | 53 | // Define this in config.h |
| 54 | #ifndef VISUALIZER_THREAD_PRIORITY | 54 | #ifndef VISUALIZER_THREAD_PRIORITY |
| 55 | #define "Visualizer thread priority not defined" | 55 | // The visualizer needs gfx thread priorities |
| 56 | #define VISUALIZER_THREAD_PRIORITY (NORMAL_PRIORITY - 2) | ||
| 56 | #endif | 57 | #endif |
| 57 | 58 | ||
| 58 | static visualizer_keyboard_status_t current_status = { | 59 | static visualizer_keyboard_status_t current_status = { |
