Skip to content

Commit

Permalink
Replace some flash macro strings with characters to save memory
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdicus committed Sep 16, 2015
1 parent 358ab5c commit abd8ece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ManylabsDataAuth/ManylabsDataAuth.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void ManylabsDataAuth::reset() {


Sha256.init(); Sha256.init();
Sha256.print( m_privateKey ); Sha256.print( m_privateKey );
Sha256.print( F(";") ); Sha256.print( ';' );
} }


// Write data to the ManylabsDataAuth. You can use all the same print methods // Write data to the ManylabsDataAuth. You can use all the same print methods
Expand Down Expand Up @@ -132,7 +132,7 @@ void ManylabsDataAuth::writeAuthHeader( Stream &stream ) {
// where hashedData is the sha256 hash of: privateKey;data // where hashedData is the sha256 hash of: privateKey;data
stream.print( F("manydata-authentication: ") ); stream.print( F("manydata-authentication: ") );
stream.print( m_publicKey ); stream.print( m_publicKey );
stream.print( F(":") ); stream.print( ':' );


char hexHash[ 65 ]; // This _must_ be 65 characters char hexHash[ 65 ]; // This _must_ be 65 characters
createHexHash( hexHash ); createHexHash( hexHash );
Expand Down

0 comments on commit abd8ece

Please sign in to comment.