You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2021/05/08 00:19:54 UTC

[incubator-nuttx] branch master updated: drivers/sensors/hdc1008: add missing break

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new a1c4ba3  drivers/sensors/hdc1008: add missing break
a1c4ba3 is described below

commit a1c4ba379f21f5fc952712264a54e53680c6d35c
Author: Diego Herranz <di...@diegoherranz.com>
AuthorDate: Fri May 7 23:41:43 2021 +0100

    drivers/sensors/hdc1008: add missing break
    
    It was not possible to use the HDC1008_MEAS_T_AND_RH
    operation mode since it was running the default case too.
---
 drivers/sensors/hdc1008.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/sensors/hdc1008.c b/drivers/sensors/hdc1008.c
index 8023e47..ac4c706 100644
--- a/drivers/sensors/hdc1008.c
+++ b/drivers/sensors/hdc1008.c
@@ -299,6 +299,7 @@ static int hdc1008_set_operational_mode(struct hdc1008_dev_s *priv,
       case HDC1008_MEAS_T_AND_RH:
         {
           reg |= HDC1008_CONFIGURATION_MODE;
+          break;
         }
 
       default: