GEAR_* rename
- change to GEAR_PARK and GEAR_LOW
- also remove some build warnings
bug: 27549456
Change-Id: I9062c4570afe5cacd6a17f1cb196273a719b0a97
diff --git a/modules/vehicle/vehicle.c b/modules/vehicle/vehicle.c
index 38c38ee..564630c 100644
--- a/modules/vehicle/vehicle.c
+++ b/modules/vehicle/vehicle.c
@@ -336,7 +336,7 @@
event.value_type = VEHICLE_VALUE_TYPE_INT32;
switch ((event.timestamp & 0x30000000)>>28) {
case 0:
- event.value.gear_selection = VEHICLE_GEAR_PARKING;
+ event.value.gear_selection = VEHICLE_GEAR_PARK;
break;
case 1:
event.value.gear_selection = VEHICLE_GEAR_NEUTRAL;
@@ -407,7 +407,7 @@
}
static int vdev_subscribe(vehicle_hw_device_t* device, int32_t prop, float sample_rate,
- int32_t zones) {
+ int32_t zones UNUSED) {
ALOGD("vdev_subscribe 0x%x, %f", prop, sample_rate);
vehicle_device_impl_t* impl = (vehicle_device_impl_t*)device;
// Check that the device is initialized.