This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/iOSDFULibrary/Classes/Implementation/GenericDFU/DFUPeripheral.swift b/iOSDFULibrary/Classes/Implementation/GenericDFU/DFUPeripheral.swift | |
index c6874fa..9590280 100644 | |
--- a/iOSDFULibrary/Classes/Implementation/GenericDFU/DFUPeripheral.swift | |
+++ b/iOSDFULibrary/Classes/Implementation/GenericDFU/DFUPeripheral.swift | |
@@ -478,7 +478,13 @@ internal class BaseCommonDFUPeripheral<TD : DFUPeripheralDelegate, TS : DFUServi | |
activating = false | |
// This part of firmware has been successfully sent | |
if (delegate?.peripheralDidDisconnectAfterFirmwarePartSent() ?? false) { | |
- connect() | |
+ if newAddressExpected { |