mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 14:14:11 +00:00 
			
		
		
		
	ble_mesh: nimble: return error if init host twice
This commit is contained in:
		@@ -88,7 +88,7 @@ int bt_mesh_host_init(void)
 | 
				
			|||||||
    int rc;
 | 
					    int rc;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (init == true) {
 | 
					    if (init == true) {
 | 
				
			||||||
        return 0;
 | 
					        return -EALREADY;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    rc = btc_init();
 | 
					    rc = btc_init();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user