mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
don't disable bluetooth or adc for now
This commit is contained in:
@@ -237,7 +237,7 @@ void System::start(uint32_t heap_start) {
|
|||||||
|
|
||||||
EMSESP::esp8266React.getNetworkSettingsService()->read([&](NetworkSettings & networkSettings) {
|
EMSESP::esp8266React.getNetworkSettingsService()->read([&](NetworkSettings & networkSettings) {
|
||||||
hostname(networkSettings.hostname.c_str()); // sets the hostname
|
hostname(networkSettings.hostname.c_str()); // sets the hostname
|
||||||
LOG_INFO(F("System %s booted (EMS-ESP version %s) "), networkSettings.hostname.c_str(), EMSESP_APP_VERSION); // print boot message
|
LOG_INFO(F("System name: %s"), hostname().c_str());
|
||||||
});
|
});
|
||||||
|
|
||||||
commands_init(); // console & api commands
|
commands_init(); // console & api commands
|
||||||
@@ -258,12 +258,14 @@ void System::adc_init(bool refresh) {
|
|||||||
#ifndef EMSESP_STANDALONE
|
#ifndef EMSESP_STANDALONE
|
||||||
// setCpuFrequencyMhz(160); // default is 240
|
// setCpuFrequencyMhz(160); // default is 240
|
||||||
|
|
||||||
// disable bluetooth
|
// disable bluetooth & ADC
|
||||||
|
/*
|
||||||
btStop();
|
btStop();
|
||||||
esp_bt_controller_disable();
|
esp_bt_controller_disable();
|
||||||
if (!analog_enabled_) {
|
if (!analog_enabled_) {
|
||||||
adc_power_off(); // turn off ADC to save power if not needed
|
adc_power_release(); // turn off ADC to save power if not needed
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user