Skip to content

Commit

Permalink
Major refactoring of main code
Browse files Browse the repository at this point in the history
  • Loading branch information
nadavmatalon committed Oct 3, 2016
1 parent f67a1f9 commit 12b9c19
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 198 deletions.
2 changes: 1 addition & 1 deletion MCP9802.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ void MCP9802::setLimit(float newLimit) {
void MCP9802::reset() {
_singleConfig = CONT;
_tempUnit = CELSIUS;
setTempUnit(CELSIUS);
setConMode(SINGLE); // check if needed
setConfig(DEFAULT_CONFIG);
setTempUnit(CELSIUS);
setHyst(DEFAULT_HYST);
setLimit(DEFAULT_LIMIT);
}
Expand Down
1 change: 0 additions & 1 deletion MCP9802.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ typedef enum:byte {
} temp_unit_t;

// update readme
// update keywords

class MCP9802 {
public:
Expand Down
Loading

0 comments on commit 12b9c19

Please sign in to comment.