From 200dd58c4405661684c242e7ac9ce4fc49c35046 Mon Sep 17 00:00:00 2001 From: jakegoodwin Date: Tue, 7 Mar 2023 01:58:10 -0800 Subject: [PATCH] removed unsigned from the chars, for gcc-avr they are the same --- src/avr_usart.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/avr_usart.c b/src/avr_usart.c index ed1bf3b..ede6e42 100644 --- a/src/avr_usart.c +++ b/src/avr_usart.c @@ -4,10 +4,6 @@ * Description: Small library to handle Serial communication on AVR micros */ -#include -#include -#include -#include #include "avr_usart.h" @@ -25,8 +21,8 @@ int demo() { //enable interrupts sei(); - unsigned char data[8] = "AT+BAUD3"; - unsigned char data_cmd[2] = "AT"; + char data[8] = "AT+BAUD3"; + char data_cmd[2] = "AT"; uint8_t data_len = 8; uint8_t data_cmd_len = 2; @@ -86,7 +82,7 @@ void init_usart0(void) { * Output: None * Description: Sends a char over usart0 */ -void tx_usart0(unsigned char data) { +void tx_usart0(char data) { //first wait for the transmit buffer to be empty while(!(UCSR0A & (1<