if (result < 0) {
printf("Can't start accelerometer SENSOR\n");
printf("Error\n\n\n\n");
+ free(event_condition);
return -1;
}
if (result < 0) {
printf("Can't disconnect Accelerometer sensor\n");
printf("Error\n\n\n\n");
+ free(event_condition);
return -1;
}
}
printf("Error\n\n\n\n");
sf_unregister_event(handle, event);
sf_disconnect(handle);
+ free(event_condition);
return -1;
}
if (stop_handle < 0) {
printf("Error\n\n");
return -1;
+ free(event_condition);
}
sf_disconnect(handle);
printf("Error\n\n\n\n");
sf_unregister_event(handle, event);
sf_disconnect(handle);
+ free(event_condition);
return -1;
}
if (stop_handle < 0) {
printf("Error\n\n");
+ free(event_condition);
return -1;
}
if (result < 0) {
printf("Can't start gyroscope SENSOR\n");
printf("Error\n\n\n\n");
+ free(event_condition);
return -1;
}
if (result < 0) {
printf("Can't disconnect gyroscope sensor\n");
printf("Error\n\n\n\n");
+ free(event_condition);
return -1;
}
}
printf("Error\n\n\n\n");
sf_unregister_event(handle, event);
sf_disconnect(handle);
+ free(event_condition);
return -1;
}
if (stop_handle < 0) {
printf("Error\n\n");
+ free(event_condition);
return -1;
}
if (result < 0) {
printf("Can't start light SENSOR\n");
printf("Error\n\n\n\n");
+ free(event_condition);
return -1;
}
if (result < 0) {
printf("Can't disconnect light sensor\n");
printf("Error\n\n\n\n");
+ free(event_condition);
return -1;
}
}
printf("Error\n\n\n\n");
sf_unregister_event(handle, event);
sf_disconnect(handle);
+ free(event_condition);
return -1;
}
if (stop_handle < 0) {
printf("Error\n\n");
+ free(event_condition);
return -1;
}
printf("Error\n\n\n\n");
sf_unregister_event(handle, event);
sf_disconnect(handle);
+ free(event_condition);
return -1;
}
if (stop_handle < 0) {
printf("Error\n\n");
+ free(event_condition);
return -1;
}
printf("Error\n\n\n\n");
sf_unregister_event(handle, event);
sf_disconnect(handle);
+ free(event_condition);
return -1;
}
if (stop_handle < 0) {
printf("Error\n\n");
+ free(event_condition);
return -1;
}
sf_disconnect(handle);
if (result < 0) {
printf("Can't start pressure SENSOR\n");
printf("Error\n\n\n\n");
+ free(event_condition);
return -1;
}
if (result < 0) {
printf("Can't disconnect pressure sensor\n");
printf("Error\n\n\n\n");
+ free(event_condition);
return -1;
}
}
printf("Error\n\n\n\n");
sf_unregister_event(handle, event);
sf_disconnect(handle);
+ free(event_condition);
return -1;
}
if (stop_handle < 0) {
printf("Error\n\n");
+ free(event_condition);
return -1;
}
if (result < 0) {
printf("Can't start proximity SENSOR\n");
printf("Error\n\n\n\n");
+ free(event_condition);
return -1;
}
if (result < 0) {
printf("Can't disconnect proximity sensor\n");
printf("Error\n\n\n\n");
+ free(event_condition);
return -1;
}
}
printf("Error\n\n\n\n");
sf_unregister_event(handle, event);
sf_disconnect(handle);
+ free(event_condition);
return -1;
}
if (stop_handle < 0) {
printf("Error\n\n");
+ free(event_condition);
return -1;
}
if (result < 0) {
printf("Can't start temperature SENSOR\n");
printf("Error\n\n\n\n");
+ free(event_condition);
return -1;
}
if (result < 0) {
printf("Can't disconnect temperature sensor\n");
printf("Error\n\n\n\n");
+ free(event_condition);
return -1;
}
}
printf("Error\n\n\n\n");
sf_unregister_event(handle, event);
sf_disconnect(handle);
+ free(event_condition);
return -1;
}
if (stop_handle < 0) {
printf("Error\n\n");
+ free(event_condition);
return -1;
}