Skip to content

Commit

Permalink
Fixed issue #1 where mma8451_get_register() was called instead of mma…
Browse files Browse the repository at this point in the history
…8451_set_register() in mma8451_set_ff_mt_cfg().
  • Loading branch information
Michael Powers committed Mar 7, 2018
1 parent 8f94906 commit 9c9c1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mma8451.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9c9c1bf

Please sign in to comment.