mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			ESP8266: astyle, remove from the .astyleignore-file
							parent
							
								
									7ed16fbd76
								
							
						
					
					
						commit
						c9eaa07236
					
				| 
						 | 
				
			
			@ -21,7 +21,6 @@ rtos/TARGET_CORTEX/rtx5
 | 
			
		|||
TESTS/mbed_hal/trng/pithy
 | 
			
		||||
targets
 | 
			
		||||
components/802.15.4_RF
 | 
			
		||||
components/wifi
 | 
			
		||||
components/TARGET_PSA/TARGET_TFM
 | 
			
		||||
tools
 | 
			
		||||
components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/tfm_impl
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -100,7 +100,7 @@ bool ESP8266::at_available()
 | 
			
		|||
 | 
			
		||||
    _smutex.lock();
 | 
			
		||||
    // Might take a while to respond after HW reset
 | 
			
		||||
    for(int i = 0; i < 5; i++) {
 | 
			
		||||
    for (int i = 0; i < 5; i++) {
 | 
			
		||||
        ready = _parser.send("AT")
 | 
			
		||||
                && _parser.recv("OK\n");
 | 
			
		||||
        if (ready) {
 | 
			
		||||
| 
						 | 
				
			
			@ -606,7 +606,7 @@ nsapi_error_t ESP8266::send(int id, const void *data, uint32_t amount)
 | 
			
		|||
        goto END;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if(!_parser.recv(">")) {
 | 
			
		||||
    if (!_parser.recv(">")) {
 | 
			
		||||
        tr_debug("ESP8266::send(): didn't get \">\"");
 | 
			
		||||
        ret = NSAPI_ERROR_WOULD_BLOCK;
 | 
			
		||||
        goto END;
 | 
			
		||||
| 
						 | 
				
			
			@ -657,7 +657,7 @@ void ESP8266::_oob_packet_hdlr()
 | 
			
		|||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if(_tcp_passive && _sock_i[id].open == true && _sock_i[id].proto == NSAPI_TCP) {
 | 
			
		||||
    if (_tcp_passive && _sock_i[id].open == true && _sock_i[id].proto == NSAPI_TCP) {
 | 
			
		||||
        if (_parser.recv("%d\n", &amount)) {
 | 
			
		||||
            _sock_i[id].tcp_data_avbl = amount;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -726,7 +726,7 @@ int32_t ESP8266::_recv_tcp_passive(int id, void *data, uint32_t amount, uint32_t
 | 
			
		|||
    _process_oob(timeout, true);
 | 
			
		||||
 | 
			
		||||
    if (_sock_i[id].tcp_data_avbl != 0) {
 | 
			
		||||
        _sock_i[id].tcp_data = (char*)data;
 | 
			
		||||
        _sock_i[id].tcp_data = (char *)data;
 | 
			
		||||
        _sock_i[id].tcp_data_rcvd = NSAPI_ERROR_WOULD_BLOCK;
 | 
			
		||||
        _sock_active_id = id;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue