Skip to content

Commit

Permalink
Fixed function definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
SV-Zanshin committed Jul 31, 2017
1 parent 276ab74 commit 40a1140
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Binary file added Images/MCP7940M.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion MicrochipSRAM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ MicrochipSRAM::~MicrochipSRAM() {} // of unused class destructor //
/*******************************************************************************************************************
** Method clearMemory to set all memory positions to the same value. Added v1.0.1. **
*******************************************************************************************************************/
void MicrochipSRAM::clearMemory(const uint8_t clearValue = 0) { // Clear all memory to one value //
void MicrochipSRAM::clearMemory(const uint8_t clearValue ) { // Clear all memory to one value //
digitalWrite(_SSPin,LOW); // Select by pulling CS low //
SPI.transfer(SRAM_WRITE_CODE); // Send the command for WRITE mode //
if (SRAMBytes==SRAM_1024) SPI.transfer(0x00); // Send 3rd address when required //
Expand Down
2 changes: 2 additions & 0 deletions MicrochipSRAM.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
** **
** Vers. Date Developer Comments **
** ====== ========== =================== ======================================================================== **
** 1.0.3 2017-07-31 [email protected] Only function prototypes may contain default values / optional parameter **
** declarations, functions may not as this can cause compiler errors **
** 1.0.2 2016-11-20 [email protected] Changed constructor to only use CS/SS pin, moved "SRAMBytes" to public **
** 1.0.1 2016-11-19 [email protected] Added method "clearMemory" **
** 1.0.0 2016-11-19 [email protected] Cleaned up, published https://github.com/SV-Zanshin/MicrochipSRAM **
Expand Down

0 comments on commit 40a1140

Please sign in to comment.