mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
fixed warnings
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@219 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
3bf783a3b6
commit
1d7f1c5cd0
@ -173,9 +173,9 @@ static void TaskTick(void *pvParameters)
|
|||||||
|
|
||||||
// I2C Test: communicate with external PCF8570 ram chip
|
// I2C Test: communicate with external PCF8570 ram chip
|
||||||
{
|
{
|
||||||
char buf[20];
|
uint8_t buf[20];
|
||||||
PIOS_I2C_Transfer(I2C_Write, 0x50<<1, "\x0\x10\x11\x12", 4);
|
PIOS_I2C_Transfer(I2C_Write, 0x50<<1, (uint8_t*)"\x0\x10\x11\x12", 4);
|
||||||
PIOS_I2C_Transfer(I2C_Write_WithoutStop, 0x50<<1, "\x0", 1);
|
PIOS_I2C_Transfer(I2C_Write_WithoutStop, 0x50<<1, (uint8_t*)"\x0", 1);
|
||||||
PIOS_I2C_Transfer(I2C_Read, 0x50<<1, buf, 3);
|
PIOS_I2C_Transfer(I2C_Read, 0x50<<1, buf, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user