Private
Public Access
2
0

firmata_mraa.c: Fix type error in uint8 array

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2016-03-16 18:58:56 +00:00
parent 334a57be11
commit 9a5abb7d56
2 changed files with 2 additions and 2 deletions

View File

@@ -205,7 +205,7 @@ mraa_firmata_i2c_read_word_data(mraa_i2c_context dev, uint8_t command)
{
if (mraa_firmata_send_i2c_read_cont_req(dev, command, 2) == MRAA_SUCCESS) {
if (mraa_firmata_i2c_wait(dev->addr, command) == MRAA_SUCCESS) {
uint8_t* rawdata[2];
uint8_t rawdata[2];
rawdata[0] = firmata_dev->i2cmsg[dev->addr][command];
rawdata[1] = firmata_dev->i2cmsg[dev->addr][command+1];
uint16_t data = (uint16_t) rawdata;

View File

@@ -42,7 +42,7 @@
#include <stdio.h>
#include <stdbool.h>
#if defined(IMRAA
#if defined(IMRAA)
#include <json-c/json.h>
#endif