Need to init clock for timer to work properly
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Compile / Compile (push) Successful in 3m44s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Compile / Compile (push) Successful in 3m44s
				
			This commit is contained in:
		
							parent
							
								
									29fa5486cb
								
							
						
					
					
						commit
						3ada2fb9a9
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -13,6 +13,10 @@ WatchyRTC::WatchyRTC()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void WatchyRTC::Init()
 | 
					void WatchyRTC::Init()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					  tmElements_t tm;
 | 
				
			||||||
 | 
					  Get(tm, 0);
 | 
				
			||||||
 | 
					  rtc_pcf.initClock();
 | 
				
			||||||
 | 
					  Set(tm);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void WatchyRTC::Get(tmElements_t & tm, int offsetInSeconds)
 | 
					void WatchyRTC::Get(tmElements_t & tm, int offsetInSeconds)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue