Skip to content
Permalink
Browse files

Replace some flash macro strings with characters to save memory

  • Loading branch information...
ewdicus committed Jan 2, 2015
1 parent 358ab5c commit abd8ece9a04c2f1b81171f945d017a576b3e9e26
Showing with 2 additions and 2 deletions.
  1. +2 −2 ManylabsDataAuth/ManylabsDataAuth.h
@@ -89,7 +89,7 @@ void ManylabsDataAuth::reset() {

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

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

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

0 comments on commit abd8ece

Please sign in to comment.
You can’t perform that action at this time.