mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-08 17:29:09 +00:00
* Change print to dprintf to avoid buffer overflow * Add stdio header for dprintf * Fix included headers
This commit is contained in:
parent
2f3807682d
commit
13493d3a78
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue