From 2e489ce4e2ad5e165671f54940ce3157d0198a36 Mon Sep 17 00:00:00 2001 From: "ucart@co3050-12" <dawehr@iastate.edu> Date: Mon, 13 Mar 2017 16:25:00 -0500 Subject: [PATCH] Fixed sign error on uart_buff --- quad/sw/modular_quad_pid/src/uart_buff.c | 2 +- quad/sw/modular_quad_pid/src/uart_buff.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quad/sw/modular_quad_pid/src/uart_buff.c b/quad/sw/modular_quad_pid/src/uart_buff.c index 56f5c1d90..2ee7edbb8 100644 --- a/quad/sw/modular_quad_pid/src/uart_buff.c +++ b/quad/sw/modular_quad_pid/src/uart_buff.c @@ -351,7 +351,7 @@ size_t uart_buff_calc_index(int given_index) { /** * Return a pointer to the start of the packet. */ -char * uart_buff_get_raw(size_t *packet_size) { +u8 * uart_buff_get_raw(size_t *packet_size) { // Copy packet into temp buffer *packet_size = uart_buff_packet_size(); int i; diff --git a/quad/sw/modular_quad_pid/src/uart_buff.h b/quad/sw/modular_quad_pid/src/uart_buff.h index 99aadd06e..4d6ddbe8a 100644 --- a/quad/sw/modular_quad_pid/src/uart_buff.h +++ b/quad/sw/modular_quad_pid/src/uart_buff.h @@ -21,7 +21,7 @@ size_t uart_buff_size(); size_t uart_buff_data_length(); int uart_buff_empty(); int uart_buff_full(); -char * uart_buff_get_raw(size_t *); +u8 * uart_buff_get_raw(size_t *); void uart_buff_print(); u32 uart_buff_packets_processed(); void uart_buff_reset(); -- GitLab