diff options
Diffstat (limited to 'quantum/visualizer/visualizer.c')
| -rw-r--r-- | quantum/visualizer/visualizer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/quantum/visualizer/visualizer.c b/quantum/visualizer/visualizer.c index dfa2ff4ee..54f6faaa4 100644 --- a/quantum/visualizer/visualizer.c +++ b/quantum/visualizer/visualizer.c | |||
| @@ -43,7 +43,7 @@ SOFTWARE. | |||
| 43 | #include "nodebug.h" | 43 | #include "nodebug.h" |
| 44 | #endif | 44 | #endif |
| 45 | 45 | ||
| 46 | #ifdef USE_SERIAL_LINK | 46 | #ifdef SERIAL_LINK_ENABLE |
| 47 | #include "serial_link/protocol/transport.h" | 47 | #include "serial_link/protocol/transport.h" |
| 48 | #include "serial_link/system/serial_link.h" | 48 | #include "serial_link/system/serial_link.h" |
| 49 | #endif | 49 | #endif |
| @@ -73,7 +73,7 @@ static bool visualizer_enabled = false; | |||
| 73 | #define MAX_SIMULTANEOUS_ANIMATIONS 4 | 73 | #define MAX_SIMULTANEOUS_ANIMATIONS 4 |
| 74 | static keyframe_animation_t* animations[MAX_SIMULTANEOUS_ANIMATIONS] = {}; | 74 | static keyframe_animation_t* animations[MAX_SIMULTANEOUS_ANIMATIONS] = {}; |
| 75 | 75 | ||
| 76 | #ifdef USE_SERIAL_LINK | 76 | #ifdef SERIAL_LINK_ENABLE |
| 77 | MASTER_TO_ALL_SLAVES_OBJECT(current_status, visualizer_keyboard_status_t); | 77 | MASTER_TO_ALL_SLAVES_OBJECT(current_status, visualizer_keyboard_status_t); |
| 78 | 78 | ||
| 79 | static remote_object_t* remote_objects[] = { | 79 | static remote_object_t* remote_objects[] = { |
| @@ -462,7 +462,7 @@ void visualizer_init(void) { | |||
| 462 | lcd_backlight_init(); | 462 | lcd_backlight_init(); |
| 463 | #endif | 463 | #endif |
| 464 | 464 | ||
| 465 | #ifdef USE_SERIAL_LINK | 465 | #ifdef SERIAL_LINK_ENABLE |
| 466 | add_remote_objects(remote_objects, sizeof(remote_objects) / sizeof(remote_object_t*) ); | 466 | add_remote_objects(remote_objects, sizeof(remote_objects) / sizeof(remote_object_t*) ); |
| 467 | #endif | 467 | #endif |
| 468 | 468 | ||
| @@ -486,7 +486,7 @@ void update_status(bool changed) { | |||
| 486 | geventSendEvent(listener); | 486 | geventSendEvent(listener); |
| 487 | } | 487 | } |
| 488 | } | 488 | } |
| 489 | #ifdef USE_SERIAL_LINK | 489 | #ifdef SERIAL_LINK_ENABLE |
| 490 | static systime_t last_update = 0; | 490 | static systime_t last_update = 0; |
| 491 | systime_t current_update = chVTGetSystemTimeX(); | 491 | systime_t current_update = chVTGetSystemTimeX(); |
| 492 | systime_t delta = current_update - last_update; | 492 | systime_t delta = current_update - last_update; |
| @@ -506,7 +506,7 @@ void visualizer_update(uint32_t default_state, uint32_t state, uint32_t leds) { | |||
| 506 | // Alternatively a mutex could be used instead of the volatile variables | 506 | // Alternatively a mutex could be used instead of the volatile variables |
| 507 | 507 | ||
| 508 | bool changed = false; | 508 | bool changed = false; |
| 509 | #ifdef USE_SERIAL_LINK | 509 | #ifdef SERIAL_LINK_ENABLE |
| 510 | if (is_serial_link_connected ()) { | 510 | if (is_serial_link_connected ()) { |
| 511 | visualizer_keyboard_status_t* new_status = read_current_status(); | 511 | visualizer_keyboard_status_t* new_status = read_current_status(); |
| 512 | if (new_status) { | 512 | if (new_status) { |
