From e7cefe2e295e3d3373d3c02670f127c8e65e8b36 Mon Sep 17 00:00:00 2001 From: Dinesh Harjani Date: Tue, 7 Jan 2025 10:31:38 +0000 Subject: [PATCH] Fix: FileSystemManager's closeAll() op should be 'write' instead of 'read' Raised via GitHub Issue here: /~https://github.com/NordicSemiconductor/IOS-nRF-Connect-Device-Manager/issues/297 --- Source/Managers/FileSystemManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Managers/FileSystemManager.swift b/Source/Managers/FileSystemManager.swift index 02d3598..02a9ecd 100644 --- a/Source/Managers/FileSystemManager.swift +++ b/Source/Managers/FileSystemManager.swift @@ -244,7 +244,7 @@ public class FileSystemManager: McuManager { /// /// - parameter callback: The callback. public func closeAll(name: String, callback: @escaping McuMgrCallback) { - send(op: .read, commandId: FilesystemID.closeFile, payload: nil, callback: callback) + send(op: .write, commandId: FilesystemID.closeFile, payload: nil, callback: callback) } // MARK: State