I2c-compass.cpp: fix example to use char instead of uint8_t
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -95,7 +95,7 @@ int main ()
|
|||||||
{
|
{
|
||||||
float direction = 0;
|
float direction = 0;
|
||||||
int16_t x = 0, y = 0, z = 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]
|
//! [Interesting]
|
||||||
mraa::I2c* i2c;
|
mraa::I2c* i2c;
|
||||||
|
|||||||
Reference in New Issue
Block a user