Skip to content

Commit

Permalink
WP management fix
Browse files Browse the repository at this point in the history
Return correct status code
  • Loading branch information
sosandroid committed Jun 13, 2014
1 parent bd0f644 commit fb5b950
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions FRAM_MB85RC_I2C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,9 @@ byte FRAM_MB85RC_I2C::enableWP(void) {
wpStatus = true;
result = 0;
}
result = 10;
else {
result = 10;
}
return result;
}
/**************************************************************************/
Expand All @@ -525,7 +527,9 @@ byte FRAM_MB85RC_I2C::disableWP() {
wpStatus = false;
result = 0;
}
result = 10;
else {
result = 10;
}
return result;
}
/**************************************************************************/
Expand Down

0 comments on commit fb5b950

Please sign in to comment.