We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9968a62 commit 08927baCopy full SHA for 08927ba
cores/esp8266/Esp.h
@@ -157,7 +157,7 @@ class EspClass {
157
uint8_t getBootVersion();
158
uint8_t getBootMode();
159
160
-#if !defined(CORE_MOCK) && defined(F_CPU)
+#if defined(F_CPU)
161
constexpr uint8_t getCpuFreqMHz() const
162
{
163
return clockCyclesPerMicrosecond();
@@ -166,7 +166,6 @@ class EspClass {
166
uint8_t getCpuFreqMHz();
167
#endif
168
169
-
170
uint32_t getFlashChipId();
171
uint8_t getFlashChipVendorId();
172
tests/host/common/MockEsp.cpp
@@ -118,11 +118,6 @@ uint32_t EspClass::getFreeSketchSpace()
118
return 4 * 1024 * 1024;
119
}
120
121
-uint8_t EspClass::getCpuFreqMHz()
122
-{
123
- return F_CPU / 1000000;
124
-}
125
126
const char *EspClass::getSdkVersion()
127
128
return "2.5.0";
0 commit comments