-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refa (DeviceResetter): the BeginReset() method now returns a verdict …
…just like the FileUploader/Downloader classes do
- Loading branch information
1 parent
95f26f5
commit 986d01c
Showing
40 changed files
with
423 additions
and
112 deletions.
There are no files selected for viewing
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
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
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
17 changes: 17 additions & 0 deletions
17
...n/java/no/laerdal/mcumgr_laerdal_wrapper/EAndroidDeviceResetterInitializationVerdict.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package no.laerdal.mcumgr_laerdal_wrapper; | ||
|
||
public enum EAndroidDeviceResetterInitializationVerdict | ||
{ | ||
SUCCESS(0), | ||
FAILED__ERROR_UPON_COMMENCING(1), //connection problems | ||
FAILED__OTHER_RESET_ALREADY_IN_PROGRESS(2); | ||
|
||
@SuppressWarnings({"FieldCanBeLocal", "unused"}) | ||
private final int _value; | ||
|
||
EAndroidDeviceResetterInitializationVerdict(int value) | ||
{ | ||
_value = value; | ||
} | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ public enum EAndroidFileUploaderVerdict //this must mirror the enum values of E[ | |
_value = value; | ||
} | ||
} | ||
|
16 changes: 16 additions & 0 deletions
16
...n/java/no/laerdal/mcumgr_laerdal_wrapper/EAndroidFirmwareEraserInitializationVerdict.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package no.laerdal.mcumgr_laerdal_wrapper; | ||
|
||
public enum EAndroidFirmwareEraserInitializationVerdict | ||
{ | ||
SUCCESS(0), | ||
FAILED__ERROR_UPON_COMMENCING(1), //connection problems | ||
FAILED__OTHER_ERASURE_ALREADY_IN_PROGRESS(2); | ||
|
||
@SuppressWarnings({"FieldCanBeLocal", "unused"}) | ||
private final int _value; | ||
|
||
EAndroidFirmwareEraserInitializationVerdict(int value) | ||
{ | ||
_value = value; | ||
} | ||
} |
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
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
6 changes: 6 additions & 0 deletions
6
...Ios.Native/McuMgrBindingsiOS/McuMgrBindingsiOS/EIOSDeviceResetInitializationVerdict.swift
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@objc | ||
public enum EIOSDeviceResetInitializationVerdict: Int { | ||
case success = 0 | ||
case failedErrorUponCommencing = 1 | ||
case failedOtherResetAlreadyInProgress = 2 | ||
} |
6 changes: 6 additions & 0 deletions
6
...Native/McuMgrBindingsiOS/McuMgrBindingsiOS/EIOSFirmwareErasureInitializationVerdict.swift
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@objc | ||
public enum EIOSFirmwareErasureInitializationVerdict: Int { | ||
case success = 0 | ||
case failedErrorUponCommencing = 1 | ||
case failedOtherErasureAlreadyInProgress = 2 | ||
} |
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
Oops, something went wrong.