diff --git a/flight/OpenPilot/System/openpilot.c b/flight/OpenPilot/System/openpilot.c index b3a3ac538..8128a96d7 100644 --- a/flight/OpenPilot/System/openpilot.c +++ b/flight/OpenPilot/System/openpilot.c @@ -173,9 +173,9 @@ static void TaskTick(void *pvParameters) // I2C Test: communicate with external PCF8570 ram chip { - char buf[20]; - PIOS_I2C_Transfer(I2C_Write, 0x50<<1, "\x0\x10\x11\x12", 4); - PIOS_I2C_Transfer(I2C_Write_WithoutStop, 0x50<<1, "\x0", 1); + uint8_t buf[20]; + PIOS_I2C_Transfer(I2C_Write, 0x50<<1, (uint8_t*)"\x0\x10\x11\x12", 4); + PIOS_I2C_Transfer(I2C_Write_WithoutStop, 0x50<<1, (uint8_t*)"\x0", 1); PIOS_I2C_Transfer(I2C_Read, 0x50<<1, buf, 3); }