         currentMatrix = matrix
         
         // Send matrix later when the write response from previous write request is not yet received
-        if isWaitingForLedMatrixWriteResponse {
+        if isWaitingForMatrixWriteResponse {
             writeMatrixOnWriteResponseReceived = true
         } else {
             writeMatrixNow(matrix)

    
    internal func didDisconnect() {
        peripheral.delegate = nil
        ledMatrixCharacteristic = nil
        delegate?.nuimoControllerDidDisconnect?(self)
    }
    

    }
    
    internal func didConnect() {
        isWaitingForMatrixWriteResponse = false
        writeMatrixOnWriteResponseReceived = false
        // Discover bluetooth services
        peripheral.discoverServices(nuimoServiceUUIDs)
