From 0782201fa1ed6ced56cc84305c078c5f43289010 Mon Sep 17 00:00:00 2001 From: Maciej Korzeniewski Date: Mon, 9 Dec 2024 15:53:19 +0200 Subject: [PATCH] Use concatMap when writing files to device to make sure that they are written sequentially #520 --- .../Sources/PolarBleSdk/sdk/impl/PolarBleApiImpl.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/iOS/ios-communications/Sources/PolarBleSdk/sdk/impl/PolarBleApiImpl.swift b/sources/iOS/ios-communications/Sources/PolarBleSdk/sdk/impl/PolarBleApiImpl.swift index dd7fbd0b..d4e21c07 100644 --- a/sources/iOS/ios-communications/Sources/PolarBleSdk/sdk/impl/PolarBleApiImpl.swift +++ b/sources/iOS/ios-communications/Sources/PolarBleSdk/sdk/impl/PolarBleApiImpl.swift @@ -2315,7 +2315,7 @@ extension PolarBleApiImpl: PolarBleApi { } return Observable.from(sortedFirmwarePackage) - .flatMap { fileEntry -> Observable in + .concatMap { fileEntry -> Observable in let fileName = fileEntry.key let firmwareBytes = fileEntry.value let filePath = "/\(fileName)"