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

        
    }
    
}
        
        @objc func writeErgWatts() {
            if let watts = ergWriteWatts {
                // crashing?
                cbCharacteristic.write(NSData.fromIntArray(WahooTrainerSerializer.setResistanceModeErg(watts)), writeType: .WithResponse)
                ergWriteWatts = nil
            } else {
