Skip to content

Commit b4668d4

Browse files
committed
Astyle update
1 parent db43bae commit b4668d4

File tree

9 files changed

+93
-91
lines changed

9 files changed

+93
-91
lines changed

esp3d/src/core/esp3d.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ bool Esp3D::begin()
117117
#endif //DISPLAY_DEVICE
118118
//Setup Network
119119
#if defined(WIFI_FEATURE) || defined(ETH_FEATURE) || defined(BLUETOOTH_FEATURE)
120-
if (Settings_ESP3D::read_byte(ESP_BOOT_RADIO_STATE) == 1){
120+
if (Settings_ESP3D::read_byte(ESP_BOOT_RADIO_STATE) == 1) {
121121
if (!NetConfig::begin()) {
122-
log_esp3d("Error setup network");
123-
res = false;
122+
log_esp3d("Error setup network");
123+
res = false;
124124
}
125125
}
126-
126+
127127
#endif //WIFI_FEATURE
128128
#if defined(ESP_AUTOSTART_SCRIPT)
129129
esp3d_gcode_host.processscript(ESP_AUTOSTART_SCRIPT);

esp3d/src/core/espcmd/ESP114.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,12 @@ bool Commands::ESP114(const char* cmd_params, level_authenticate_type auth_type,
5454
output->printERROR("Only ON or OFF mode supported!");
5555
return false;
5656
} else {
57-
if (!Settings_ESP3D::write_byte (ESP_BOOT_RADIO_STATE, (parameter == "ON")?1:0)) {
58-
output->printERROR ("Set failed!");
59-
response = false;
60-
}
61-
else {
62-
output->printMSG ("ok");
63-
}
57+
if (!Settings_ESP3D::write_byte (ESP_BOOT_RADIO_STATE, (parameter == "ON")?1:0)) {
58+
output->printERROR ("Set failed!");
59+
response = false;
60+
} else {
61+
output->printMSG ("ok");
62+
}
6463
}
6564
}
6665
return response;

esp3d/src/core/espcmd/ESP400.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ bool Commands::ESP400(const char* cmd_params, level_authenticate_type auth_type,
7272
#endif //ETH_FEATURE
7373
output->print ("]}");
7474
#if defined (WIFI_FEATURE) || defined (ETH_FEATURE) || defined(BT_FEATURE)
75-
//Radio State at Boot
75+
//Radio State at Boot
7676
output->print (",{\"F\":\"network/network\",\"P\":\"");
7777
output->print (ESP_BOOT_RADIO_STATE);
7878
output->print ("\",\"T\":\"B\",\"R\":\"1\",\"V\":\"");

esp3d/src/core/espcmd/ESP410.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ bool Commands::ESP410(const char* cmd_params, level_authenticate_type auth_type,
4141
#endif //AUTHENTICATION_FEATURE
4242
//Backup current mode
4343
uint8_t currentmode = WiFi.getMode();
44-
if(currentmode==WIFI_AP)WiFi.mode(WIFI_AP_STA);
44+
if(currentmode==WIFI_AP) {
45+
WiFi.mode(WIFI_AP_STA);
46+
}
4547
bool plain = hastag(cmd_params,"plain");
4648
int n = 0;
4749
uint8_t total = 0;

0 commit comments

Comments
 (0)