Skip to content

Commit

Permalink
Use concatMap when writing files to device to make sure that they are…
Browse files Browse the repository at this point in the history
… written sequentially polarofficial#520
  • Loading branch information
korzonkiee committed Dec 9, 2024
1 parent 734c1f1 commit 0782201
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,7 @@ extension PolarBleApiImpl: PolarBleApi {
}

return Observable.from(sortedFirmwarePackage)
.flatMap { fileEntry -> Observable<FirmwareUpdateStatus> in
.concatMap { fileEntry -> Observable<FirmwareUpdateStatus> in
let fileName = fileEntry.key
let firmwareBytes = fileEntry.value
let filePath = "/\(fileName)"
Expand Down

0 comments on commit 0782201

Please sign in to comment.