mirror of
				https://github.com/eclipse/upm.git
				synced 2025-11-04 09:05:34 +03:00 
			
		
		
		
	kx122: Allow setting bus frequency to enable faster operation
The hardcoded frequency of 10kHz was much slower than the capacity of the device Signed-off-by: Antoine W. Campagna <AntoineW@Campagna.org>
This commit is contained in:
		@@ -43,7 +43,7 @@ int main(int argc, char **argv)
 | 
			
		||||
  signal(SIGINT,sig_handler);
 | 
			
		||||
 | 
			
		||||
  //! [Interesting]
 | 
			
		||||
  kx122_context sensor = kx122_init(0,-1,24);
 | 
			
		||||
  kx122_context sensor = kx122_init(0, -1, 24, 10000);
 | 
			
		||||
  if (!sensor)
 | 
			
		||||
  {
 | 
			
		||||
      printf("kx122_init() failed.\n");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user