fix: configure CPU frequency settings in setup function only for testing
This commit is contained in:
parent
a0b8639488
commit
aaa7a6ee9c
@ -15,10 +15,17 @@
|
|||||||
#include "esp_task_wdt.h"
|
#include "esp_task_wdt.h"
|
||||||
#include "commonFS.h"
|
#include "commonFS.h"
|
||||||
|
|
||||||
|
#include "soc/rtc.h"
|
||||||
|
|
||||||
// ##### SETUP #####
|
// ##### SETUP #####
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
|
|
||||||
|
rtc_cpu_freq_config_t config;
|
||||||
|
rtc_clk_cpu_freq_get_config(&config);
|
||||||
|
rtc_clk_cpu_freq_to_config(RTC_CPU_FREQ_80M, &config);
|
||||||
|
rtc_clk_cpu_freq_set_config_fast(&config);
|
||||||
|
|
||||||
uint64_t chipid;
|
uint64_t chipid;
|
||||||
|
|
||||||
chipid = ESP.getEfuseMac(); //The chip ID is essentially its MAC address(length: 6 bytes).
|
chipid = ESP.getEfuseMac(); //The chip ID is essentially its MAC address(length: 6 bytes).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user