From 8eff646cb0f6defd0e309ab50710a5c175713c8d Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Tue, 1 Jul 2014 14:55:47 +0100 Subject: [PATCH] I2c-compass.cpp: fix example to use char instead of uint8_t Signed-off-by: Brendan Le Foll --- examples/c++/I2c-compass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/c++/I2c-compass.cpp b/examples/c++/I2c-compass.cpp index d6c0d8f..a17cb68 100644 --- a/examples/c++/I2c-compass.cpp +++ b/examples/c++/I2c-compass.cpp @@ -95,7 +95,7 @@ int main () { float direction = 0; int16_t x = 0, y = 0, z = 0; - uint8_t rx_tx_buf[MAX_BUFFER_LENGTH]; + char rx_tx_buf[MAX_BUFFER_LENGTH]; //! [Interesting] mraa::I2c* i2c;