We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7210ad3 commit f719bb2Copy full SHA for f719bb2
cores/esp8266/core_esp8266_main.cpp
@@ -84,10 +84,16 @@ void initVariant() {
84
extern "C" void __preloop_update_frequency() {
85
#if defined(F_CPU) && (F_CPU == 160000000L)
86
ets_update_cpu_frequency(160);
87
- CPU2X |= 1;
+ CPU2X |= 1UL;
88
+#elif defined(F_CPU)
89
+ ets_update_cpu_frequency(80);
90
+ CPU2X &= ~1UL;
91
#elif !defined(F_CPU)
92
if (system_get_cpu_freq() == 160) {
93
94
+ }
95
+ else {
96
97
}
98
#endif
99
0 commit comments