Merge pull request #131 from mciantyre/take-once
Mark peripherals as taken
This commit is contained in:
		
						commit
						208da57a15
					
				| @ -55,6 +55,7 @@ macro_rules! peripherals { | ||||
|                     if unsafe { _EMBASSY_DEVICE_PERIPHERALS } { | ||||
|                         None | ||||
|                     } else { | ||||
|                         unsafe { _EMBASSY_DEVICE_PERIPHERALS = true }; | ||||
|                         Some(unsafe { <Self as embassy::util::Steal>::steal() }) | ||||
|                     } | ||||
|                 }) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user