Skip to content

Commit 6fe7b4e

Browse files
substituting "\r\n" with MACRO _ENDL
1 parent ee687fc commit 6fe7b4e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

UNOR4USBBridge/cmds_ota.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void CAtHandler::add_cmds_ota() {
5050
switch (parser.cmd_mode) {
5151
case chAT::CommandMode::Run: {
5252
Arduino_ESP32_OTA::Error ota_error = OTA.begin();
53-
String error = String((int)ota_error) + "\r\n";
53+
String error = String((int)ota_error) + _ENDL;
5454
srv.write_response_prompt();
5555
srv.write_str((const char *)(error.c_str()));
5656
srv.write_line_end();
@@ -67,7 +67,7 @@ void CAtHandler::add_cmds_ota() {
6767
}
6868

6969
Arduino_ESP32_OTA::Error ota_error = OTA.begin(path.c_str());
70-
String error = String((int)ota_error) + "\r\n";
70+
String error = String((int)ota_error) + _ENDL;
7171
srv.write_response_prompt();
7272
srv.write_str((const char *)(error.c_str()));
7373
srv.write_line_end();
@@ -91,7 +91,7 @@ void CAtHandler::add_cmds_ota() {
9191
}
9292

9393
int ota_error = OTA.download(url.c_str());
94-
String error = String((int)ota_error) + "\r\n";
94+
String error = String((int)ota_error) + _ENDL;
9595
srv.write_response_prompt();
9696
srv.write_str((const char *)(error.c_str()));
9797
srv.write_line_end();
@@ -108,7 +108,7 @@ void CAtHandler::add_cmds_ota() {
108108
}
109109

110110
int ota_error = OTA.download(url.c_str(), path.c_str());
111-
String error = String((int)ota_error) + "\r\n";
111+
String error = String((int)ota_error) + _ENDL;
112112
srv.write_response_prompt();
113113
srv.write_str((const char *)(error.c_str()));
114114
srv.write_line_end();
@@ -198,7 +198,7 @@ void CAtHandler::add_cmds_ota() {
198198
switch (parser.cmd_mode) {
199199
case chAT::CommandMode::Run: {
200200
Arduino_ESP32_OTA::Error ota_error = OTA.verify();
201-
String error = String((int)ota_error) + "\r\n";
201+
String error = String((int)ota_error) + _ENDL;
202202
srv.write_response_prompt();
203203
srv.write_str((const char *)(error.c_str()));
204204
srv.write_line_end();
@@ -215,7 +215,7 @@ void CAtHandler::add_cmds_ota() {
215215
switch (parser.cmd_mode) {
216216
case chAT::CommandMode::Run: {
217217
Arduino_ESP32_OTA::Error ota_error = OTA.update();
218-
String error = String((int)ota_error) + "\r\n";
218+
String error = String((int)ota_error) + _ENDL;
219219
srv.write_response_prompt();
220220
srv.write_str((const char *)(error.c_str()));
221221
srv.write_line_end();

0 commit comments

Comments
 (0)