@@ -50,7 +50,7 @@ void CAtHandler::add_cmds_ota() {
50
50
switch (parser.cmd_mode ) {
51
51
case chAT::CommandMode::Run: {
52
52
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 ;
54
54
srv.write_response_prompt ();
55
55
srv.write_str ((const char *)(error.c_str ()));
56
56
srv.write_line_end ();
@@ -67,7 +67,7 @@ void CAtHandler::add_cmds_ota() {
67
67
}
68
68
69
69
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 ;
71
71
srv.write_response_prompt ();
72
72
srv.write_str ((const char *)(error.c_str ()));
73
73
srv.write_line_end ();
@@ -91,7 +91,7 @@ void CAtHandler::add_cmds_ota() {
91
91
}
92
92
93
93
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 ;
95
95
srv.write_response_prompt ();
96
96
srv.write_str ((const char *)(error.c_str ()));
97
97
srv.write_line_end ();
@@ -108,7 +108,7 @@ void CAtHandler::add_cmds_ota() {
108
108
}
109
109
110
110
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 ;
112
112
srv.write_response_prompt ();
113
113
srv.write_str ((const char *)(error.c_str ()));
114
114
srv.write_line_end ();
@@ -198,7 +198,7 @@ void CAtHandler::add_cmds_ota() {
198
198
switch (parser.cmd_mode ) {
199
199
case chAT::CommandMode::Run: {
200
200
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 ;
202
202
srv.write_response_prompt ();
203
203
srv.write_str ((const char *)(error.c_str ()));
204
204
srv.write_line_end ();
@@ -215,7 +215,7 @@ void CAtHandler::add_cmds_ota() {
215
215
switch (parser.cmd_mode ) {
216
216
case chAT::CommandMode::Run: {
217
217
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 ;
219
219
srv.write_response_prompt ();
220
220
srv.write_str ((const char *)(error.c_str ()));
221
221
srv.write_line_end ();
0 commit comments