result = check_sensor_api(ULTRAVIOLET_RAW_DATA_EVENT, interval);
fprintf(fp, "ULTRAVIOLET - RAW_DATA_REPORT_ON_TIME - %d\n", result);
+ result = check_sensor_api(BIO_LED_RED_RAW_DATA_EVENT, interval);
+ fprintf(fp, "BIO_LED_RED - RAW_DATA_REPORT_ON_TIME - %d\n", result);
+
printf("Logs printed in ./auto_test.output\n");
fclose(fp);
return 0;
case(ULTRAVIOLET_SENSOR):
printf("Ultraviolet [%lld] [%6.6f]\n", data.timestamp, data.values[0]);
break;
+ case(BIO_LED_RED_SENSOR):
+ printf("Bio_LED_Red [%lld] [%6.6f]\n", data.timestamp, data.values[0]);
+ break;
case(ORIENTATION_SENSOR):
printf("Orientation [%lld] [%6.6f] [%6.6f] [%6.6f]\n\n", data.timestamp, data.values[0], data.values[1], data.values[2]);
break;
if (strcmp(str, "RAW_DATA_EVENT") == 0)
return ULTRAVIOLET_RAW_DATA_EVENT;
break;
+ case BIO_LED_RED_SENSOR:
+ if (strcmp(str, "RAW_DATA_EVENT") == 0)
+ return BIO_LED_RED_RAW_DATA_EVENT;
+ break;
case ORIENTATION_SENSOR:
if (strcmp(str, "RAW_DATA_EVENT") == 0)
return ORIENTATION_RAW_DATA_EVENT;
case ULTRAVIOLET_SENSOR:
printf("Ultraviolet [%lld] [%6.6f]\n", data->timestamp, data->values[0]);
break;
+ case BIO_LED_RED_SENSOR:
+ printf("Bio_LED_Red [%lld] [%6.6f]\n", data->timestamp, data->values[0]);
+ break;
case ORIENTATION_SENSOR :
printf("Orientation [%lld] [%6.6f] [%6.6f] [%6.6f]\n", data->timestamp, data->values[0], data->values[1], data->values[2]);
break;
printf("[geomagnetic_rv] ");
printf("[gaming_rv] ");
printf("[ultraviolet] ");
+ printf("[bio_led_red] ");
printf("[light]\n");
printf("[uncal_gyro]");
printf("event:");
sensor_type = UNCAL_GYROSCOPE_SENSOR;
event = UNCAL_GYRO_RAW_DATA_EVENT;
}
+ else if (strcmp(argv[1], "bio_led_red") == 0) {
+ sensor_type = BIO_LED_RED_SENSOR;
+ event = BIO_LED_RED_RAW_DATA_EVENT;
+ }
else {
usage();
}