mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix standalone
This commit is contained in:
@@ -50,7 +50,9 @@
|
|||||||
|
|
||||||
#include <HTTPClient.h>
|
#include <HTTPClient.h>
|
||||||
|
|
||||||
|
#ifndef EMSESP_STANDALONE
|
||||||
#include "esp_efuse.h"
|
#include "esp_efuse.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace emsesp {
|
namespace emsesp {
|
||||||
|
|
||||||
@@ -1427,10 +1429,12 @@ bool System::command_service(const char * cmd, const char * value) {
|
|||||||
}
|
}
|
||||||
int n;
|
int n;
|
||||||
if (!ok && Helpers::value2number(value, n)) {
|
if (!ok && Helpers::value2number(value, n)) {
|
||||||
|
#ifndef EMSESP_STANDALONE
|
||||||
if (!strcmp(cmd, "fuse/mfg")) { // && esp_efuse_read_reg(EFUSE_BLK3, 0) == 0) {
|
if (!strcmp(cmd, "fuse/mfg")) { // && esp_efuse_read_reg(EFUSE_BLK3, 0) == 0) {
|
||||||
ok = esp_efuse_write_reg(EFUSE_BLK3, 0, (uint32_t)n) == ESP_OK;
|
ok = esp_efuse_write_reg(EFUSE_BLK3, 0, (uint32_t)n) == ESP_OK;
|
||||||
LOG_INFO("fuse programed with value '%X': %s", n, ok ? "successful" : "failed");
|
LOG_INFO("fuse programed with value '%X': %s", n, ok ? "successful" : "failed");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ok) {
|
if (ok) {
|
||||||
|
|||||||
Reference in New Issue
Block a user