Skip to content

Commit

Permalink
Improved handling error on reset (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
philips77 authored and bgiori committed Dec 19, 2018
1 parent 4fbae4d commit aeccbad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -613,13 +613,13 @@ public void run() {
private McuMgrCallback<McuMgrResponse> mResetCallback = new McuMgrCallback<McuMgrResponse>() {
@Override
public void onResponse(@NotNull McuMgrResponse response) {
// Reset command has been sent.
LOG.trace("Reset request sent. Waiting for reset...");
// Check for an error return code
if (!response.isSuccess()) {
fail(new McuMgrErrorException(response.getReturnCode()));
return;
}
mResetResponseTime = SystemClock.elapsedRealtime();
LOG.trace("Reset request sent. Waiting for reset...");
}

@Override
Expand Down

0 comments on commit aeccbad

Please sign in to comment.