diff options
author | Jake Grossman <jake.r.grossman@gmail.com> | 2019-07-31 08:11:40 -0500 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2019-08-13 10:45:38 +0900 |
commit | d6fe48954e26306a9512052bbfa55c922ad0e3ce (patch) | |
tree | fab31fc2f22add37fdc3121006dde174f88b9151 | |
parent | 986a0f068f675e4e481ccaf06c0a515bcdfd1146 (diff) |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/protocol/xt_interrupt.c b/tmk_core/protocol/xt_interrupt.c index 3823bbd3ac..8276f96cd3 100644 --- a/tmk_core/protocol/xt_interrupt.c +++ b/tmk_core/protocol/xt_interrupt.c @@ -41,7 +41,7 @@ POSSIBILITY OF SUCH DAMAGE. #include <util/delay.h> #include "xt.h" #include "wait.h" -#include "print.h" +#include "debug.h" static inline uint8_t pbuf_dequeue(void); static inline void pbuf_enqueue(uint8_t data); @@ -138,7 +138,7 @@ static inline void pbuf_enqueue(uint8_t data) pbuf[pbuf_head] = data; pbuf_head = next; } else { - print("pbuf: full\n"); + dprintf("pbuf: full\n"); } SREG = sreg; } |