   
   
   func updateRotation(_ radian: Double) {
+    if(updateRotationFlag) {
+      return
+    }
+    
+    updateRotationFlag = true
     
     let currentDeg = radiansToDegrees(radian)
     let variation = getVariation(currentDeg)

    }
    
    prevDeg = currentDeg
  }
  
  func radiansToDegrees(_ value: Double) -> Double {

  let UD_KEY_EFFECT_COLOR_SATURATION = "effect_color_saturation"
  let UD_KEY_LED_DIVIDE = "led_divide"
  let UD_KEY_LED_POSITION = "led_position"
  
  var updateRotationFlag = false
  
  var devices = NSMutableDictionary()
  var colors = NSMutableDictionary()
