Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getCpuFreqMHz(): fix when F_CPU is not defined #7554

Merged
merged 1 commit into from
Aug 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
getCpuFreqMHz(): fix when F_CPU is not defined
  • Loading branch information
d-a-v committed Aug 27, 2020
commit c4c20ff47ac976e0d7b766e07465f08d12d26228
5 changes: 1 addition & 4 deletions cores/esp8266/Esp.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,7 @@ class EspClass {
return esp_get_cpu_freq_mhz();
}
#else
uint8_t getCpuFreqMHz() const
{
return esp_get_cpu_freq_mhz();
}
uint8_t getCpuFreqMHz() const;
#endif

uint32_t getFlashChipId();
Expand Down