Skip to content

Commit 53e4dec

Browse files
authored
getCpuFreqMHz(): fix when F_CPU is not defined (#7554)
1 parent e53aa87 commit 53e4dec

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cores/esp8266/Esp.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,7 @@ class EspClass {
127127
return esp_get_cpu_freq_mhz();
128128
}
129129
#else
130-
uint8_t getCpuFreqMHz() const
131-
{
132-
return esp_get_cpu_freq_mhz();
133-
}
130+
uint8_t getCpuFreqMHz() const;
134131
#endif
135132

136133
uint32_t getFlashChipId();

0 commit comments

Comments
 (0)