aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Grossman <jake.r.grossman@gmail.com>2019-07-31 08:11:40 -0500
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-07-31 06:11:40 -0700
commit13493d3a78ebb05c4012f908a2ec2575d74e49aa (patch)
tree2f30618f6e166fb7887e7d14bf42dc5768519492
parent2f3807682d0b0cd70b853e15ef1df67bd053706e (diff)
downloadqmk_firmware-13493d3a78ebb05c4012f908a2ec2575d74e49aa.tar.gz
qmk_firmware-13493d3a78ebb05c4012f908a2ec2575d74e49aa.zip
Removed print call to resolve #6364 (#6413)
* Change print to dprintf to avoid buffer overflow * Add stdio header for dprintf * Fix included headers
-rw-r--r--tmk_core/protocol/xt_interrupt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/protocol/xt_interrupt.c b/tmk_core/protocol/xt_interrupt.c
index 3823bbd3a..8276f96cd 100644
--- a/tmk_core/protocol/xt_interrupt.c
+++ b/tmk_core/protocol/xt_interrupt.c
@@ -41,7 +41,7 @@ POSSIBILITY OF SUCH DAMAGE.
41#include <util/delay.h> 41#include <util/delay.h>
42#include "xt.h" 42#include "xt.h"
43#include "wait.h" 43#include "wait.h"
44#include "print.h" 44#include "debug.h"
45 45
46static inline uint8_t pbuf_dequeue(void); 46static inline uint8_t pbuf_dequeue(void);
47static inline void pbuf_enqueue(uint8_t data); 47static inline void pbuf_enqueue(uint8_t data);
@@ -138,7 +138,7 @@ static inline void pbuf_enqueue(uint8_t data)
138 pbuf[pbuf_head] = data; 138 pbuf[pbuf_head] = data;
139 pbuf_head = next; 139 pbuf_head = next;
140 } else { 140 } else {
141 print("pbuf: full\n"); 141 dprintf("pbuf: full\n");
142 } 142 }
143 SREG = sreg; 143 SREG = sreg;
144} 144}