1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

fixed warnings

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@219 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
fredericg 2010-03-01 10:17:16 +00:00 committed by fredericg
parent 3bf783a3b6
commit 1d7f1c5cd0

View File

@ -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);
}