Skip to content

Commit 31abe8b

Browse files
authored
FIX: SPI_DPS310 not gated correctly (#52)
1 parent b8d31f4 commit 31abe8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/drivers/barometer/barometer_dps310.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
// 10 MHz max SPI frequency
4848
#define DPS310_MAX_SPI_CLK_HZ 10000000
4949

50-
#if defined(USE_BARO) && defined(USE_BARO_DPS310)
50+
#if defined(USE_BARO) && (defined(USE_BARO_DPS310) || defined(USE_BARO_SPI_DPS310))
5151

5252
#define DPS310_I2C_ADDR 0x76
5353

0 commit comments

Comments
 (0)