You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2021/05/18 08:53:48 UTC

[GitHub] [mynewt-core] apache-mynewt-bot commented on pull request #2597: sensor_creator: Add LIS2DW12 configuration for bus drivers

apache-mynewt-bot commented on pull request #2597:
URL: https://github.com/apache/mynewt-core/pull/2597#issuecomment-842986547


   
   <!-- style-bot -->
   
   ## Style check summary
   
   ### Our coding style is [here!](https://github.com/apache/mynewt-core/blob/master/CODING_STANDARDS.md)
   
   
   #### hw/sensor/creator/src/sensor_creator.c
   <details>
   
   ```diff
   @@ -619,7 +622,7 @@
    static struct sensor_itf lis2dw12_itf = {
        .si_ints = {
            { MYNEWT_VAL(LIS2DW12_OFB_INT1_PIN_HOST), 1,
   -            MYNEWT_VAL(LIS2DW12_OFB_INT_CFG_ACTIVE)},
   +          MYNEWT_VAL(LIS2DW12_OFB_INT_CFG_ACTIVE)},
            { -1, 0, 0 },
        }
    };
   @@ -627,11 +630,12 @@
    #if MYNEWT_VAL(I2C_0)
    static struct sensor_itf i2c_0_itf_lis2dw12 = {
        .si_type = SENSOR_ITF_I2C,
   -    .si_num  = 0,
   +    .si_num = 0,
        .si_addr = 0x18,
        .si_ints = {
            { MYNEWT_VAL(LIS2DW12_INT1_PIN_HOST), MYNEWT_VAL(LIS2DW12_INT1_PIN_DEVICE),
   -          MYNEWT_VAL(LIS2DW12_INT1_CFG_ACTIVE)}}
   +          MYNEWT_VAL(LIS2DW12_INT1_CFG_ACTIVE)}
   +    }
    };
    #endif
    #endif
   ```
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org