[Sensor] Fix type on auto rotation sensor property (#1198)
authorMuHong Byun <mh.byun@samsung.com>
Wed, 18 Dec 2019 01:08:54 +0000 (10:08 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Wed, 18 Dec 2019 01:08:54 +0000 (10:08 +0900)
Signed-off-by: MuHong Byun <mh.byun@samsung.com>
src/Tizen.Sensor/Tizen.Sensor/EventArgs/AutoRotationSensorDataUpdatedEventArgs.cs
src/Tizen.Sensor/Tizen.Sensor/Plugins/AutoRotationSensor.cs
src/Tizen.Sensor/Tizen.Sensor/SensorEnumerations.cs

index f666ba4..d3137f8 100644 (file)
@@ -27,7 +27,7 @@ namespace Tizen.Sensor
     {
         internal AutoRotationSensorDataUpdatedEventArgs(float[] values, SensorDataAccuracy accuracy)
         {
-            Rotaion = (AutoRotationState)values[0];
+            Rotation = (AutoRotationState)values[0];
             Accuracy = accuracy;
         }
 
@@ -35,7 +35,7 @@ namespace Tizen.Sensor
         /// Gets the value of the rotation state.
         /// </summary>
         /// <value> The rotation state. </value>
-        public AutoRotationState Rotaion { get; private set; } = AutoRotationState.Degree_0;
+        public AutoRotationState Rotation { get; private set; } = AutoRotationState.Degree_0;
 
         /// <summary>
         /// Gets the accuracy of the auto rotation data.
index 1ea71e4..d4d2374 100644 (file)
@@ -33,7 +33,7 @@ namespace Tizen.Sensor
         /// Gets the value of the rotation state.
         /// </summary>
         /// <value> The rotation state. </value>
-        public AutoRotationState Rotaion { get; private set; } = AutoRotationState.Degree_0;
+        public AutoRotationState Rotation { get; private set; } = AutoRotationState.Degree_0;
 
 
         /// <summary>
@@ -128,9 +128,9 @@ namespace Tizen.Sensor
 
                 TimeSpan = new TimeSpan((Int64)sensorData.timestamp);
                 if (sensorData.values[0] == 0) {
-                    Rotaion = AutoRotationState.Degree_0;
+                    Rotation = AutoRotationState.Degree_0;
                 } else {
-                    Rotaion = (AutoRotationState)sensorData.values[0];
+                    Rotation = (AutoRotationState)sensorData.values[0];
                 }
                 Accuracy = sensorData.accuracy;
 
index 073d33f..f28898f 100755 (executable)
@@ -111,7 +111,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Stationary activity detector.
         /// </summary>
-        /// Auto Rotaion sensor.
+        /// Auto Rotation sensor.
         /// </summary>
         AutoRotation = 0x901,
         /// <summary>