Fixed nextTick calculation for booster
This commit is contained in:
		
							parent
							
								
									fb7fafa4be
								
							
						
					
					
						commit
						8919fc632f
					
				@ -76,7 +76,7 @@ int main()
 | 
			
		||||
				}
 | 
			
		||||
				
 | 
			
		||||
				// Calculate when next high/low should be set
 | 
			
		||||
				boost_highVoltage_nextTick = clock() + 1/(boost_frequency/2)		// Half of time it should be high/low
 | 
			
		||||
				boost_highVoltage_nextTick = clock() + F_CPU * 1/(boost_frequency/2)		// Half of time it should be high/low
 | 
			
		||||
			}
 | 
			
		||||
		}else
 | 
			
		||||
		{
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user