front end controller performance improvements

This commit is contained in:
Shannon Sterz 2016-02-18 22:38:21 +01:00
parent ff135aa3e0
commit 73a66e3cef

View file

@ -48,10 +48,6 @@ app.controller('MainCtrl', ['$scope', 'arduino', function ($scope, arduino){
$scope.RCs = arduino.RCs; $scope.RCs = arduino.RCs;
for (var i = $scope.RCs.length - 1; i >= 0; i--) {
$scope.RCs[i].state = false;
}
$scope.sendRC = function(RC){ $scope.sendRC = function(RC){
arduino.sendRC(RC); arduino.sendRC(RC);
}; };