@@ -100,7 +100,7 @@ bool ESP8266::at_available()
100100
101101 _smutex.lock ();
102102 // Might take a while to respond after HW reset
103- for (int i = 0 ; i < 5 ; i++) {
103+ for (int i = 0 ; i < 5 ; i++) {
104104 ready = _parser.send (" AT" )
105105 && _parser.recv (" OK\n " );
106106 if (ready) {
@@ -195,7 +195,7 @@ bool ESP8266::start_uart_hw_flow_ctrl(void)
195195
196196 if (done) {
197197 // Start board's flow control
198- _serial.set_flow_control (SerialBase::RTSCTS, _serial_rts, _serial_cts);
198+ _serial.set_flow_control (SerialBase::RTSCTS, _serial_rts, _serial_cts);
199199 }
200200
201201 } else if (_serial_rts != NC) {
@@ -591,7 +591,7 @@ nsapi_error_t ESP8266::send(int id, const void *data, uint32_t amount)
591591 // Data stream can be truncated
592592 if (amount > 2048 && _sock_i[id].proto == NSAPI_TCP) {
593593 amount = 2048 ;
594- // Datagram must stay intact
594+ // Datagram must stay intact
595595 } else if (amount > 2048 && _sock_i[id].proto == NSAPI_UDP) {
596596 tr_debug (" UDP datagram maximum size is 2048" );
597597 return NSAPI_ERROR_PARAMETER;
@@ -606,7 +606,7 @@ nsapi_error_t ESP8266::send(int id, const void *data, uint32_t amount)
606606 goto END;
607607 }
608608
609- if (!_parser.recv (" >" )) {
609+ if (!_parser.recv (" >" )) {
610610 tr_debug (" ESP8266::send(): didn't get \" >\" " );
611611 ret = NSAPI_ERROR_WOULD_BLOCK;
612612 goto END;
@@ -657,7 +657,7 @@ void ESP8266::_oob_packet_hdlr()
657657 return ;
658658 }
659659
660- if (_tcp_passive && _sock_i[id].open == true && _sock_i[id].proto == NSAPI_TCP) {
660+ if (_tcp_passive && _sock_i[id].open == true && _sock_i[id].proto == NSAPI_TCP) {
661661 if (_parser.recv (" %d\n " , &amount)) {
662662 _sock_i[id].tcp_data_avbl = amount;
663663
@@ -726,7 +726,7 @@ int32_t ESP8266::_recv_tcp_passive(int id, void *data, uint32_t amount, uint32_t
726726 _process_oob (timeout, true );
727727
728728 if (_sock_i[id].tcp_data_avbl != 0 ) {
729- _sock_i[id].tcp_data = (char *)data;
729+ _sock_i[id].tcp_data = (char *)data;
730730 _sock_i[id].tcp_data_rcvd = NSAPI_ERROR_WOULD_BLOCK;
731731 _sock_active_id = id;
732732
@@ -735,7 +735,7 @@ int32_t ESP8266::_recv_tcp_passive(int id, void *data, uint32_t amount, uint32_t
735735
736736 // NOTE: documentation v3.0 says '+CIPRECVDATA:<data_len>,' but it's not how the FW responds...
737737 bool done = _parser.send (" AT+CIPRECVDATA=%d,%lu" , id, amount)
738- && _parser.recv (" OK\n " );
738+ && _parser.recv (" OK\n " );
739739
740740 _sock_i[id].tcp_data = NULL ;
741741 _sock_active_id = -1 ;
@@ -972,26 +972,26 @@ bool ESP8266::_recv_ap(nsapi_wifi_ap_t *ap)
972972
973973 if (FW_AT_LEAST_VERSION (_at_v.major , _at_v.minor , _at_v.patch , 0 , ESP8266_AT_VERSION_WIFI_SCAN_CHANGE)) {
974974 ret = _parser.recv (" +CWLAP:(%d,\" %32[^\" ]\" ,%hhd,\" %hhx:%hhx:%hhx:%hhx:%hhx:%hhx\" ,%hhu,%d,%d,%d,%d,%d,%d)\n " ,
975- &sec,
976- ap->ssid ,
977- &ap->rssi ,
978- &ap->bssid [0 ], &ap->bssid [1 ], &ap->bssid [2 ], &ap->bssid [3 ], &ap->bssid [4 ], &ap->bssid [5 ],
979- &ap->channel ,
980- &dummy,
981- &dummy,
982- &dummy,
983- &dummy,
984- &dummy,
985- &dummy);
975+ &sec,
976+ ap->ssid ,
977+ &ap->rssi ,
978+ &ap->bssid [0 ], &ap->bssid [1 ], &ap->bssid [2 ], &ap->bssid [3 ], &ap->bssid [4 ], &ap->bssid [5 ],
979+ &ap->channel ,
980+ &dummy,
981+ &dummy,
982+ &dummy,
983+ &dummy,
984+ &dummy,
985+ &dummy);
986986 } else {
987987 ret = _parser.recv (" +CWLAP:(%d,\" %32[^\" ]\" ,%hhd,\" %hhx:%hhx:%hhx:%hhx:%hhx:%hhx\" ,%hhu,%d,%d)\n " ,
988- &sec,
989- ap->ssid ,
990- &ap->rssi ,
991- &ap->bssid [0 ], &ap->bssid [1 ], &ap->bssid [2 ], &ap->bssid [3 ], &ap->bssid [4 ], &ap->bssid [5 ],
992- &ap->channel ,
993- &dummy,
994- &dummy);
988+ &sec,
989+ ap->ssid ,
990+ &ap->rssi ,
991+ &ap->bssid [0 ], &ap->bssid [1 ], &ap->bssid [2 ], &ap->bssid [3 ], &ap->bssid [4 ], &ap->bssid [5 ],
992+ &ap->channel ,
993+ &dummy,
994+ &dummy);
995995
996996 }
997997
0 commit comments