mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-29 05:21:37 +03:00
Even more concise #if form.
This commit is contained in:
@ -122,10 +122,9 @@ class EspClass {
|
|||||||
uint8_t getBootMode();
|
uint8_t getBootMode();
|
||||||
|
|
||||||
#if defined(F_CPU) || defined(CORE_MOCK)
|
#if defined(F_CPU) || defined(CORE_MOCK)
|
||||||
constexpr uint8_t getCpuFreqMHz() const
|
constexpr
|
||||||
#else
|
|
||||||
uint8_t getCpuFreqMHz() const
|
|
||||||
#endif
|
#endif
|
||||||
|
uint8_t getCpuFreqMHz() const
|
||||||
{
|
{
|
||||||
return esp_get_cpu_freq_mhz();
|
return esp_get_cpu_freq_mhz();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user