Updates to utilize AMB set calls 06/32006/1 accepted/tizen/ivi/20141215.065041 submit/tizen_ivi/20141213.000015
authorBrian Jones <brian.j.jones@intel.com>
Fri, 12 Dec 2014 23:45:13 +0000 (15:45 -0800)
committerBrian Jones <brian.j.jones@intel.com>
Fri, 12 Dec 2014 23:45:25 +0000 (15:45 -0800)
Change-Id: I87c391c55fddf7df165eea25650f585558b0fad7

js/hvacControler.js
js/main.js

index 4f73598..39a58c3 100644 (file)
@@ -553,28 +553,7 @@ hvacControler.prototype.initButtons = function() {
                        }
                        bootstrap.carIndicator.setStatus("seatHeaterRight", status);
 
-                       if (status === 0) {
-                               bootstrap.carIndicator.setStatus("HeatedSeatFRModeRequest", 3);
-                       } else {
-                               bootstrap.carIndicator.setStatus("HeatedSeatFRModeRequest", 0);
-                       }
-
-                       var request;
-
-                       switch (status) {
-                       case 0:
-                       case 1:
-                               request = status;
-                               break;
-                       case 2:
-                               request = 3;
-                               break;
-                       case 3:
-                               request = 5;
-                               break;
-                       }
-
-                       bootstrap.carIndicator.setStatus("HeatedSeatFRRequest", request);
+                       bootstrap.carIndicator.setStatus("HeatedSeatFRRequest", status);
                }
        });
        // SeatHeater - front left
@@ -592,29 +571,7 @@ hvacControler.prototype.initButtons = function() {
                                break;
                        }
                        bootstrap.carIndicator.setStatus("seatHeaterLeft", status);
-
-                       if (status === 0) {
-                               bootstrap.carIndicator.setStatus("HeatedSeatFLModeRequest", 3);
-                       } else {
-                               bootstrap.carIndicator.setStatus("HeatedSeatFLModeRequest", 0);
-                       }
-
-                       var request;
-
-                       switch (status) {
-                       case 0:
-                       case 1:
-                               request = status;
-                               break;
-                       case 2:
-                               request = 3;
-                               break;
-                       case 3:
-                               request = 5;
-                               break;
-                       }
-
-                       bootstrap.carIndicator.setStatus("HeatedSeatFLRequest", request);
+                       bootstrap.carIndicator.setStatus("HeatedSeatFLRequest", status);
                }
        });
        // AirflowDirection - FloorDuct - 1 (FOOT)
index ec71843..d3aad6f 100644 (file)
@@ -111,7 +111,6 @@ var init = function() {
                                        }
                                }
                                bootstrap.carIndicator.setStatus("targetTemperatureLeft", ($(this).val() + 29) - ($(this).val() * 2));
-                               bootstrap.carIndicator.setStatus("FrontTSetLeftCmd", ($(this).val() + 29) - ($(this).val() * 2));
                        }
                });
 
@@ -124,7 +123,6 @@ var init = function() {
                        orientation : "vertical",
                        slide : function() {
                                bootstrap.carIndicator.setStatus("targetTemperatureRight", ($(this).val() + 29) - ($(this).val() * 2));
-                               bootstrap.carIndicator.setStatus("FrontTSetRightCmd", ($(this).val() + 29) - ($(this).val() * 2));
                        }
                });