From 9c9c1bf6d67c7295f1b076c3d138271f6206cb2e Mon Sep 17 00:00:00 2001 From: Michael Powers Date: Wed, 7 Mar 2018 09:13:37 -0500 Subject: [PATCH] Fixed issue #1 where mma8451_get_register() was called instead of mma8451_set_register() in mma8451_set_ff_mt_cfg(). --- mma8451.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mma8451.c b/mma8451.c index d54f2ea..e006ef8 100644 --- a/mma8451.c +++ b/mma8451.c @@ -541,7 +541,7 @@ int mma8451_get_ff_mt_cfg(mma8451* device, mma8451_register_ff_mt_cfg* data) { return 1; } int mma8451_set_ff_mt_cfg(mma8451* device, mma8451_register_ff_mt_cfg* data) { - if(!mma8451_get_register(device, MMA8451_REGISTER_FF_MT_CFG, (mma8451_register_generic*)data, 0)) { + if(!mma8451_set_register(device, MMA8451_REGISTER_FF_MT_CFG, (mma8451_register_generic*)data, 0)) { return 0; } return 1;