mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			Astyle format mbed_fault_handler.[ch]
							parent
							
								
									49928ec143
								
							
						
					
					
						commit
						020f0e580d
					
				| 
						 | 
				
			
			@ -145,8 +145,9 @@ mbed_error_status_t mbed_get_reboot_fault_context (mbed_fault_context_t *fault_c
 | 
			
		|||
{
 | 
			
		||||
    mbed_error_status_t status = MBED_MAKE_ERROR(MBED_MODULE_PLATFORM, MBED_ERROR_CODE_ITEM_NOT_FOUND);
 | 
			
		||||
#if MBED_CONF_PLATFORM_CRASH_CAPTURE_ENABLED
 | 
			
		||||
    if(fault_context == NULL)
 | 
			
		||||
    if (fault_context == NULL) {
 | 
			
		||||
        return MBED_MAKE_ERROR(MBED_MODULE_PLATFORM, MBED_ERROR_CODE_INVALID_ARGUMENT);
 | 
			
		||||
    }
 | 
			
		||||
    memcpy(fault_context, mbed_fault_context, sizeof(mbed_fault_context_t));
 | 
			
		||||
    status = MBED_SUCCESS;
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue