Compile fixes for old/unused targets.

These are some changes that I needed to compile
most of the unsupported targets.

After this all (make list_config_targets) compile
for me except: posix_eagle_muorb, posix_sdflight_default
and qurt_eagle_legacy_driver_default.
This commit is contained in:
Carlo Wood
2016-10-26 14:00:52 +02:00
committed by Lorenz Meier
parent 1999ed2601
commit 5b52cd0fe6
10 changed files with 88 additions and 25 deletions
@@ -88,7 +88,7 @@ int MuorbTestExample::DefaultTest()
int i = 0;
pwm.error_count++;
sc.gyro_errcount[i]++;
/*sc.gyro_errcount[i]++;*/ // no member named 'gyro_errcount' in 'sensor_combined_s'
while (!appState.exitRequested() && i < 10) {
@@ -184,8 +184,8 @@ int MuorbTestExample::FileReadTest()
static const char TEST_FILE_PATH[] = "./test.txt";
FILE *fp;
char *line = NULL;
size_t len = 0;
ssize_t read;
/*size_t len = 0;
ssize_t read;*/
fp = fopen(TEST_FILE_PATH, "r");