Skip to content

Commit

Permalink
Removed print call to resolve qmk#6364 (qmk#6413)
Browse files Browse the repository at this point in the history
* Change print to dprintf to avoid buffer overflow

* Add stdio header for dprintf

* Fix included headers
  • Loading branch information
jakergrossman authored and mechmerlin committed Jul 31, 2019
1 parent 2f38076 commit 13493d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tmk_core/protocol/xt_interrupt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 13493d3

Please sign in to comment.