mirror of
https://github.com/esphome/esphome.git
synced 2025-09-22 13:12:22 +01:00
preen
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
#ifdef USE_ESP32
|
#ifdef USE_ESP32
|
||||||
#include "mbedtls/sha256.h"
|
#include "mbedtls/sha256.h"
|
||||||
#elif defined(USE_ESP8266) || defined(USE_RP2040) || defined(USE_LIBRETINY)
|
#elif defined(USE_ARDUINO)
|
||||||
#include <SHA256.h>
|
#include <SHA256.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ void SHA256::calculate() {
|
|||||||
mbedtls_sha256_finish(&this->ctx_->ctx, this->ctx_->hash);
|
mbedtls_sha256_finish(&this->ctx_->ctx, this->ctx_->hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined(USE_ESP8266) || defined(USE_RP2040) || defined(USE_LIBRETINY)
|
#elif defined(USE_ARDUINO)
|
||||||
|
|
||||||
struct SHA256::SHA256Context {
|
struct SHA256::SHA256Context {
|
||||||
::SHA256 sha;
|
::SHA256 sha;
|
||||||
|
Reference in New Issue
Block a user