Removed print call to resolve #6364 (#6413)

* Change print to dprintf to avoid buffer overflow

* Add stdio header for dprintf

* Fix included headers
fix/print_buffer_overflow
Jake Grossman 5 years ago committed by Drashna Jael're
parent 573e0bfab1
commit cfb4ec7d91
No known key found for this signature in database
GPG Key ID: 344E4D7ABFD1A48B

@ -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…
Cancel
Save