aboutsummaryrefslogtreecommitdiffstats
path: root/os/ex/ST/lis3dsh.c
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-05-02 13:18:38 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-05-02 13:18:38 +0000
commit021bd52c4ab8f705097f45e3f3a4bf43a86ee1cb (patch)
tree6fae9b366e062b650af952f68e76647318ce0eb9 /os/ex/ST/lis3dsh.c
parente30edc0e9ca5fbc15c11b0ce744099b848611624 (diff)
downloadChibiOS-021bd52c4ab8f705097f45e3f3a4bf43a86ee1cb.tar.gz
ChibiOS-021bd52c4ab8f705097f45e3f3a4bf43a86ee1cb.tar.bz2
ChibiOS-021bd52c4ab8f705097f45e3f3a4bf43a86ee1cb.zip
Fixed Bug #943
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11985 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/ex/ST/lis3dsh.c')
-rw-r--r--os/ex/ST/lis3dsh.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/os/ex/ST/lis3dsh.c b/os/ex/ST/lis3dsh.c
index b3634a1f7..3400f646e 100644
--- a/os/ex/ST/lis3dsh.c
+++ b/os/ex/ST/lis3dsh.c
@@ -336,15 +336,14 @@ static msg_t acc_reset_sensivity(void *ip) {
* previous and next fullscale value.
* @note A recalibration is highly suggested after calling this function.
*
- * @param[in] ip pointer to @p LIS3DSHDriver interface.
+ * @param[in] devp pointer to @p LIS3DSHDriver interface.
* @param[in] fs new fullscale value.
*
* @return The operation status.
* @retval MSG_OK if the function succeeded.
* @retval MSG_RESET otherwise.
*/
-static msg_t acc_set_full_scale(LIS3DSHDriver *devp,
- lis3dsh_acc_fs_t fs) {
+static msg_t acc_set_full_scale(LIS3DSHDriver *devp, lis3dsh_acc_fs_t fs) {
float newfs, scale;
uint8_t i, cr;
msg_t msg;