mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
clang auto formatting
This commit is contained in:
@@ -43,7 +43,8 @@ static inline EMSESP & to_app(Shell & shell) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define NO_ARGUMENTS \
|
#define NO_ARGUMENTS \
|
||||||
std::vector<std::string> {}
|
std::vector<std::string> { \
|
||||||
|
}
|
||||||
|
|
||||||
// add static functions here....
|
// add static functions here....
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ REGISTER_FACTORY(Heatsource, EMSdevice::DeviceType::HEATSOURCE);
|
|||||||
|
|
||||||
Heatsource::Heatsource(uint8_t device_type, uint8_t device_id, uint8_t product_id, const char * version, const char * name, uint8_t flags, uint8_t brand)
|
Heatsource::Heatsource(uint8_t device_type, uint8_t device_id, uint8_t product_id, const char * version, const char * name, uint8_t flags, uint8_t brand)
|
||||||
: EMSdevice(device_type, device_id, product_id, version, name, flags, brand) {
|
: EMSdevice(device_type, device_id, product_id, version, name, flags, brand) {
|
||||||
|
|
||||||
// AM200 alternative heatsource
|
// AM200 alternative heatsource
|
||||||
if (device_id == EMSdevice::EMS_DEVICE_ID_BOILER || (device_id >= EMSdevice::EMS_DEVICE_ID_AHS1 && device_id < EMSdevice::EMS_DEVICE_ID_HS1)) {
|
if (device_id == EMSdevice::EMS_DEVICE_ID_BOILER || (device_id >= EMSdevice::EMS_DEVICE_ID_AHS1 && device_id < EMSdevice::EMS_DEVICE_ID_HS1)) {
|
||||||
uint8_t tag = device_id == EMSdevice::EMS_DEVICE_ID_BOILER
|
uint8_t tag = device_id == EMSdevice::EMS_DEVICE_ID_BOILER
|
||||||
|
|||||||
@@ -658,9 +658,7 @@ void System::network_init(bool refresh) {
|
|||||||
last_system_check_ = 0; // force the LED to go from fast flash to pulse
|
last_system_check_ = 0; // force the LED to go from fast flash to pulse
|
||||||
|
|
||||||
bool disableEth;
|
bool disableEth;
|
||||||
EMSESP::esp8266React.getNetworkSettingsService()->read([&](NetworkSettings & settings) {
|
EMSESP::esp8266React.getNetworkSettingsService()->read([&](NetworkSettings & settings) { disableEth = settings.ssid.length() > 0; });
|
||||||
disableEth = settings.ssid.length() > 0;
|
|
||||||
});
|
|
||||||
|
|
||||||
// no ethernet present or disabled
|
// no ethernet present or disabled
|
||||||
if (phy_type_ == PHY_type::PHY_TYPE_NONE || disableEth) {
|
if (phy_type_ == PHY_type::PHY_TYPE_NONE || disableEth) {
|
||||||
|
|||||||
Reference in New Issue
Block a user