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:
parent
72051eea91
commit
400632f818
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user