diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-05-10 17:05:39 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-05-10 17:05:39 +0000 |
commit | b8983060bba2e5e7728eca8bd495f1911405bb2b (patch) | |
tree | 52764e8feb13b8aac2304a7f1061b50be0a30043 /os/ex/ST/l3gd20.c | |
parent | 77a32a7b37dd537e42ef5093326658e00fd3b457 (diff) | |
download | ChibiOS-b8983060bba2e5e7728eca8bd495f1911405bb2b.tar.gz ChibiOS-b8983060bba2e5e7728eca8bd495f1911405bb2b.tar.bz2 ChibiOS-b8983060bba2e5e7728eca8bd495f1911405bb2b.zip |
Added new assets
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9458 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ex/ST/l3gd20.c')
-rw-r--r-- | os/ex/ST/l3gd20.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os/ex/ST/l3gd20.c b/os/ex/ST/l3gd20.c index 1030abb97..c618a8c8d 100644 --- a/os/ex/ST/l3gd20.c +++ b/os/ex/ST/l3gd20.c @@ -332,6 +332,10 @@ static msg_t reset_sensivity(void *ip) { else if(((L3GD20Driver *)ip)->config->fullscale == L3GD20_FS_2000DPS) for(i = 0; i < L3GD20_NUMBER_OF_AXES; i++) ((L3GD20Driver *)ip)->sensitivity[i] = L3GD20_SENS_2000DPS; + else { + osalDbgAssert(FALSE, "reset_sensivity(), full scale issue"); + return MSG_RESET; + } return MSG_OK; } |