                     return accelerometerEnabledCharacteristic.write(TISensorTag.AccelerometerService.Enabled.Yes)
                 } else {
                     let promise = Promise<Characteristic>()
-                    promise.failure(CenteralError.enabledCharacteristicNotFound)
+                    promise.failure(CentralError.enabledCharacteristicNotFound)
                     return promise.future
                 }
             } else {
                 let promise = Promise<Characteristic>()
-                promise.failure(CenteralError.serviceNotFound)
+                promise.failure(CentralError.serviceNotFound)
                 return promise.future
             }
         }

                return accelerometerUpdatePeriodCharacteristic.read(10.0)
            } else {
                let promise = Promise<Characteristic>()
                promise.failure(CenteralError.characteristicNotFound)
                return promise.future
            }
        }

                return peripheral.discoverPeripheralServices([serviceUUID])
            } else {
                let promise = Promise<Peripheral>()
                promise.failure(CentralError.peripheralNotConnected)
                return promise.future
            }
        }.flatmap {peripheral -> Future<Characteristic> in
