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("");