Web updater improved
This commit is contained in:
13
src/hash.cpp
13
src/hash.cpp
@@ -22,16 +22,5 @@ String get_sha256(String payload) {
|
||||
buffer[i*2+1] = hexmap[shaResult[i] & 0x0F];
|
||||
}
|
||||
buffer[sizeof(buffer) - 1] = '\0';
|
||||
String hash = String(buffer);
|
||||
|
||||
ESP_LOGI(TAG, "SHA256 payload: %s", payload);
|
||||
ESP_LOGI(TAG, "SHA256 hash: %s", hash.c_str());
|
||||
//Serial.print("SHA256 payload: ");
|
||||
//Serial.print(payload);
|
||||
//Serial.println();
|
||||
//Serial.print("SHA256-Hash: ");
|
||||
//Serial.print(hash);
|
||||
//Serial.println();
|
||||
|
||||
return hash;
|
||||
return String(buffer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user