1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-04 18:03:20 +03:00

Even more concise #if form.

This commit is contained in:
Dirk O. Kaar 2020-08-29 00:32:19 +02:00
parent 72051eea91
commit 400632f818

View File

@ -122,10 +122,9 @@ class EspClass {
uint8_t getBootMode();
#if defined(F_CPU) || defined(CORE_MOCK)
constexpr uint8_t getCpuFreqMHz() const
#else
uint8_t getCpuFreqMHz() const
constexpr
#endif
uint8_t getCpuFreqMHz() const
{
return esp_get_cpu_freq_mhz();
}