Skip to content

Commit 0e0da95

Browse files
nordic-aukorlubos
authored andcommitted
samples: npm1300_fuel_gauge: Fix CC bitmask
Use BIT instead of BIT_MASK when masking CC charge status bit. Signed-off-by: Audun Korneliussen <[email protected]>
1 parent 59aed60 commit 0e0da95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/pmic/native/npm1300_fuel_gauge/src/fuel_gauge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "nrf_fuel_gauge.h"
1616

1717
/* nPM1300 CHARGER.BCHGCHARGESTATUS.CONSTANTCURRENT register bitmask */
18-
#define NPM1300_CHG_STATUS_CC_MASK BIT_MASK(3)
18+
#define NPM1300_CHG_STATUS_CC_MASK BIT(3)
1919

2020
static float max_charge_current;
2121
static float term_charge_current;

0 commit comments

Comments
 (0)