Skip to content

Commit

Permalink
Merge pull request #8493 from jia200x/ina220_fix
Browse files Browse the repository at this point in the history
drivers/ina220: fix bus voltage range bitmask
  • Loading branch information
PeterKietzmann authored Jan 31, 2018
2 parents fac763b + 31b4033 commit 197abe8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/include/ina220.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ typedef enum ina220_range {
*/
typedef enum ina220_brng {
INA220_BRNG_16V_FSR = 0x0000, /**< 16 V bus voltage full scale range */
INA220_BRNG_32V_FSR = 0x0200, /**< 32 V bus voltage full scale range, default. */
INA220_BRNG_32V_FSR = 0x2000, /**< 32 V bus voltage full scale range, default. */
} ina220_brng_t;

/**
* @brief Shunt ADC settings
*
* @see Table 5 in INA220 data sheet
* @see Table 4 in INA220 data sheet
*/
typedef enum ina220_sadc {
/** 9 bit resolution, 84 us conversion time */
Expand Down Expand Up @@ -107,7 +107,7 @@ typedef enum ina220_sadc {
/**
* @brief Bus ADC settings
*
* @see Table 5 in INA220 data sheet
* @see Table 4 in INA220 data sheet
*/
typedef enum ina220_badc {
/** 9 bit resolution, 84 us conversion time */
Expand Down

0 comments on commit 197abe8

Please sign in to comment.