mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
OP-11 Moved PIOS_BMP085_Init() since the OS must be running before the first I2C transfer can be issued
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@305 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
a2ea8b0e53
commit
c932e131f0
@ -99,8 +99,6 @@ int main()
|
||||
|
||||
PIOS_I2C_Init();
|
||||
|
||||
PIOS_BMP085_Init();
|
||||
|
||||
PIOS_Servo_SetHz(50, 450);
|
||||
|
||||
/* Create a FreeRTOS task */
|
||||
@ -145,8 +143,11 @@ static void TaskTesting(void *pvParameters)
|
||||
portTickType xDelay = 250 / portTICK_RATE_MS;
|
||||
portTickType xTimeout = 10 / portTICK_RATE_MS;
|
||||
|
||||
PIOS_BMP085_Init();
|
||||
|
||||
for(;;)
|
||||
{
|
||||
|
||||
/* This blocks the task until the BMP085 EOC */
|
||||
/*
|
||||
PIOS_BMP085_StartADC(TemperatureConv);
|
||||
|
Loading…
x
Reference in New Issue
Block a user