Skip to content

Commit f1ebd1d

Browse files
author
albezanc
committed
ism303dac: fixed _xl_act_sleep_dur_set #90
1 parent 551355b commit f1ebd1d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ism303dac_STdC/driver/ism303dac_reg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2580,12 +2580,12 @@ int32_t ism303dac_xl_act_sleep_dur_set(stmdev_ctx_t *ctx, uint8_t val)
25802580
ism303dac_wake_up_dur_a_t wake_up_dur_a;
25812581
int32_t ret;
25822582

2583-
ret = ism303dac_read_reg(ctx, ISM303DAC_WAKE_UP_THS_A,
2583+
ret = ism303dac_read_reg(ctx, ISM303DAC_WAKE_UP_DUR_A,
25842584
(uint8_t*)&wake_up_dur_a, 1);
25852585
if(ret == 0){
25862586

25872587
wake_up_dur_a.sleep_dur = val;
2588-
ret = ism303dac_write_reg(ctx, ISM303DAC_WAKE_UP_THS_A,
2588+
ret = ism303dac_write_reg(ctx, ISM303DAC_WAKE_UP_DUR_A,
25892589
(uint8_t*)&wake_up_dur_a, 1);
25902590
}
25912591
return ret;

0 commit comments

Comments
 (0)