         
     }
     
-}+}

        
        private var ergWriteTimer: NSTimer?
        private var ergWriteWatts: UInt16?
        public func setResistanceModeErg(watts: UInt16) {
            ergWriteWatts = watts
            if ergWriteTimer == nil {
                writeErgWatts()

            }
        }
        
        public func setResistanceLevel(level: UInt8) {
            ergWriteTimer?.invalidate()
            ergWriteTimer = nil
            
