From 8e6d82107f110a1f25c6e863c35813523a4d2769 Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Mon, 6 Nov 2023 17:31:17 +0100 Subject: [PATCH] Vyuziti ACPU modulu --- src/encString.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/encString.cpp b/src/encString.cpp index 2cf06d0..a009c75 100644 --- a/src/encString.cpp +++ b/src/encString.cpp @@ -1,7 +1,7 @@ #include "encString.hpp" #include #include -#include +#include bool isBase64(const char *p) { @@ -30,8 +30,8 @@ void strEncode(String &str) unsigned int enciphidx = 0; char c; unsigned int i; - uint32_t cid = ESP_getChipId(); - uint32_t* pkey = (uint32_t *)&key[0]; + uint32_t cid = ACPU::getChipId(); + auto *pkey = (uint32_t *)&key[0]; uint8_t data[str.length()]; *pkey = cid; @@ -54,8 +54,8 @@ void strDecode(String &str) const char *src = &str[0]; uint8_t key[4]; - uint32_t cid = ESP_getChipId(); - uint32_t* pkey = (uint32_t *)&key[0]; + uint32_t cid = ACPU::getChipId(); + auto *pkey = (uint32_t *)&key[0]; uint8_t data[str.length()]; String result = F("");