kx122: Allow faster SPI bus frequency

The hardcoded frequency of 10kHz was much slower than the capacity of the device

Signed-off-by: Antoine W. Campagna <AntoineW@Campagna.org>
Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Antoine W. Campagna
2018-03-25 22:02:02 -04:00
committed by Noel Eck
parent 83f541a5db
commit 54c6d294af
5 changed files with 16 additions and 7 deletions

View File

@ -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");