Skip to content

Commit b007bf0

Browse files
Andrew55529nordicjm
authored andcommitted
lib: st25r3911b: Correction of errors in voltage calculation
lib: st25r3911b: Correction of errors in voltage calculation In official documentation on st25r3911 when we measure voltage, one LSB represents 23.438 mV. When calculating, we multiply the fractional part by a three-digit number. When restoring, we divide it by 100, not by 1000. This is an error. Signed-off-by: Andrei Lashkov <[email protected]>
1 parent ec3b81c commit b007bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/st25r3911b/st25r3911b_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ LOG_MODULE_DECLARE(st25r3911b);
3131
#define POWER_SUPP_5V_STEP 120
3232
#define POWER_SUPP_MEAS_INTEGER 23
3333
#define POWER_SUPP_MEAS_FRACTION 438
34-
#define POWER_SUPP_MEAS_FRACTION_DIVISOR 100
34+
#define POWER_SUPP_MEAS_FRACTION_DIVISOR 1000
3535
#define REGULATOR_INIT_REG_VALUE 5
3636

3737
#define FIELD_THRESHOLD_TRG_DEFAULT 0x30

0 commit comments

Comments
 (0)