File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -524,7 +524,7 @@ static bool dps310_measure_psr(struct dps310_data *data,
524524
525525 /* read pressure raw values in one continuous read */
526526 int res = i2c_write_read (data -> i2c_master , config -> i2c_addr ,
527- & REG_ADDR_TMP_B2 , 1 , & value_raw ,
527+ & REG_ADDR_PSR_B2 , 1 , & value_raw ,
528528 sizeof (value_raw ));
529529 if (res < 0 ) {
530530 LOG_WRN ("I2C error: %d" , res );
@@ -553,7 +553,7 @@ static bool dps310_measure_tmp(struct dps310_data *data,
553553
554554 /* read temperature raw values in one continuous read */
555555 int res = i2c_write_read (data -> i2c_master , config -> i2c_addr ,
556- & REG_ADDR_PSR_B2 , 1 , & value_raw ,
556+ & REG_ADDR_TMP_B2 , 1 , & value_raw ,
557557 sizeof (value_raw ));
558558 if (res < 0 ) {
559559 LOG_WRN ("I2C error: %d" , res );
You can’t perform that action at this time.
0 commit comments