FDCAN: Fix some indenting in macros
This commit is contained in:
		
							parent
							
								
									a061cf3133
								
							
						
					
					
						commit
						0565098b06
					
				@ -929,8 +929,8 @@ macro_rules! impl_fdcan {
 | 
				
			|||||||
                unsafe { peripherals::$inst::mut_state() }
 | 
					                unsafe { peripherals::$inst::mut_state() }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#[cfg(feature = "time")]
 | 
					            #[cfg(feature = "time")]
 | 
				
			||||||
fn calc_timestamp(ns_per_timer_tick: u64, ts_val: u16) -> Timestamp {
 | 
					            fn calc_timestamp(ns_per_timer_tick: u64, ts_val: u16) -> Timestamp {
 | 
				
			||||||
                let now_embassy = embassy_time::Instant::now();
 | 
					                let now_embassy = embassy_time::Instant::now();
 | 
				
			||||||
                if ns_per_timer_tick == 0 {
 | 
					                if ns_per_timer_tick == 0 {
 | 
				
			||||||
                    return now_embassy;
 | 
					                    return now_embassy;
 | 
				
			||||||
@ -939,12 +939,12 @@ fn calc_timestamp(ns_per_timer_tick: u64, ts_val: u16) -> Timestamp {
 | 
				
			|||||||
                let delta = cantime.overflowing_sub(ts_val).0 as u64;
 | 
					                let delta = cantime.overflowing_sub(ts_val).0 as u64;
 | 
				
			||||||
                let ns = ns_per_timer_tick * delta as u64;
 | 
					                let ns = ns_per_timer_tick * delta as u64;
 | 
				
			||||||
                now_embassy - embassy_time::Duration::from_nanos(ns)
 | 
					                now_embassy - embassy_time::Duration::from_nanos(ns)
 | 
				
			||||||
}
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#[cfg(not(feature = "time"))]
 | 
					            #[cfg(not(feature = "time"))]
 | 
				
			||||||
fn calc_timestamp(_ns_per_timer_tick: u64, ts_val: u16) -> Timestamp {
 | 
					            fn calc_timestamp(_ns_per_timer_tick: u64, ts_val: u16) -> Timestamp {
 | 
				
			||||||
                ts_val
 | 
					                ts_val
 | 
				
			||||||
}
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user