         var bytesToSend = initPacketData.length
         
         repeat {
-            print("Offset:\(offset), to go:\(bytesToSend)")
+
             let packetLength = min(bytesToSend, PacketSize)
             let packet = initPacketData.subdataWithRange(NSRange(location: offset, length: packetLength))
             

            let packet = firmware.data.subdataWithRange(NSRange(location: bytesSent, length: packetLength))
            peripheral.writeValue(packet, forCharacteristic: characteristic, type: CBCharacteristicWriteType.WithoutResponse)


            print("\(totalPackets): \(packetsSent) + \(packetsLeft) = \(packetsSent + packetsLeft)")
            print("\(bytesTotal): \(self.bytesSent) + \(bytesLeft) = \(self.bytesSent + bytesLeft)")

            bytesSent += packetLength
            packetsToSendNow -= 1


    
    func resumeFromOffset(anOffset : UInt32) {
        self.bytesSent = Int(anOffset)
        startTime = CFAbsoluteTimeGetCurrent()
        lastTime = startTime
    }
