From cfa48f5987ee00f1ef44959cedc6e5248f2bdfb9 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 24 Feb 2013 15:46:58 +0000 Subject: =?UTF-8?q?Changed=20all=20*=5FSendByte()=20function=20prototypes?= =?UTF-8?q?=20to=20accept=20a=20void=20pointer=20for=20the=20input=20buffe?= =?UTF-8?q?r=20(thanks=20to=20Simon=20K=C3=BCppers)=20instead=20of=20a=20u?= =?UTF-8?q?int8=5Ft=20pointer.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LUFA/Drivers/Peripheral/AVR8/Serial_AVR8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LUFA/Drivers/Peripheral/AVR8/Serial_AVR8.c') diff --git a/LUFA/Drivers/Peripheral/AVR8/Serial_AVR8.c b/LUFA/Drivers/Peripheral/AVR8/Serial_AVR8.c index 658697afd..e77eb90cd 100644 --- a/LUFA/Drivers/Peripheral/AVR8/Serial_AVR8.c +++ b/LUFA/Drivers/Peripheral/AVR8/Serial_AVR8.c @@ -85,11 +85,11 @@ void Serial_SendString(const char* StringPtr) } } -void Serial_SendData(const uint8_t* Buffer, +void Serial_SendData(const void* Buffer, uint16_t Length) { while (Length--) - Serial_SendByte(*(Buffer++)); + Serial_SendByte(*((uint8_t*)Buffer++)); } void Serial_CreateStream(FILE* Stream) -- cgit v1.2.3