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

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

        
    }
    
}
