moved backported files

This commit is contained in:
Mathieu Carbou
2024-09-04 22:50:41 +02:00
parent d5eac05df5
commit 688ea40f2f
4 changed files with 8 additions and 10 deletions

View File

@@ -23,13 +23,6 @@ src_dir = examples/SimpleServer
; src_dir = examples/Draft
; src_dir = examples/issues/Issue14
[env:arduino]
platform = espressif32
board = esp32dev
lib_deps =
bblanchon/ArduinoJson @ 7.1.0
mathieucarbou/AsyncTCP @ 3.2.5
[env:arduino-2]
platform = espressif32@6.8.1
board = esp32dev

View File

@@ -27,7 +27,7 @@
#if defined(ESP32)
#if ESP_IDF_VERSION_MAJOR < 5
#include "./port/SHA1Builder.h"
#include "BackPort_SHA1Builder.h"
#else
#include <SHA1Builder.h>
#endif

View File

@@ -23,7 +23,7 @@
#include <Arduino.h>
#if ESP_IDF_VERSION_MAJOR < 5
#include "SHA1Builder.h"
#include "BackPort_SHA1Builder.h"
// 32-bit integer manipulation macros (big endian)
@@ -202,7 +202,7 @@ void SHA1Builder::process(const uint8_t *data) {
// Public methods
void SHA1Builder::begin(void) {
void SHA1Builder::begin() {
total[0] = 0;
total[1] = 0;

View File

@@ -12,6 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include <Arduino.h>
#if ESP_IDF_VERSION_MAJOR < 5
#ifndef SHA1Builder_h
#define SHA1Builder_h
@@ -37,3 +40,5 @@ class SHA1Builder {
};
#endif // SHA1Builder_h
#endif // ESP_IDF_VERSION_MAJOR < 5