fix
This commit is contained in:
		
							parent
							
								
									162f356ece
								
							
						
					
					
						commit
						01dbe92783
					
				@ -58,7 +58,7 @@ mod thread {
 | 
				
			|||||||
            loop {
 | 
					            loop {
 | 
				
			||||||
                unsafe {
 | 
					                unsafe {
 | 
				
			||||||
                    avr_device::interrupt::disable();
 | 
					                    avr_device::interrupt::disable();
 | 
				
			||||||
                    if SIGNAL_WORK_THREAD_MODE.swap(false, Ordering::SeqCst) {
 | 
					                    if !SIGNAL_WORK_THREAD_MODE.swap(false, Ordering::SeqCst) {
 | 
				
			||||||
                        avr_device::interrupt::enable();
 | 
					                        avr_device::interrupt::enable();
 | 
				
			||||||
                        avr_device::asm::sleep();
 | 
					                        avr_device::asm::sleep();
 | 
				
			||||||
                    } else {
 | 
					                    } else {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user