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 Philip Karlsson committed Dec 3, 2019
1 parent c1259c3 commit de5996b
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 de5996b

Please sign in to comment.