Skip to content

Commit

Permalink
Merge pull request #303 from NordicSemiconductor/closeall
Browse files Browse the repository at this point in the history
Fix: FileSystemManager's closeAll() op should be 'write' instead of 'read'
  • Loading branch information
dinesharjani authored Jan 7, 2025
2 parents 5edee5a + e7cefe2 commit aa418bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Managers/FileSystemManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public class FileSystemManager: McuManager {
///
/// - parameter callback: The callback.
public func closeAll(name: String, callback: @escaping McuMgrCallback<McuMgrResponse>) {
send(op: .read, commandId: FilesystemID.closeFile, payload: nil, callback: callback)
send(op: .write, commandId: FilesystemID.closeFile, payload: nil, callback: callback)
}

// MARK: State
Expand Down

0 comments on commit aa418bc

Please sign in to comment.