         
     }
     
-}+}

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

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