mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-06-26 07:10:47 -04:00
Fixed BME280 driver init
This commit is contained in:
parent
596539f0cd
commit
275704b508
4 changed files with 12 additions and 23 deletions
|
@ -250,7 +250,7 @@ bool bme280_init(uint8_t cs_usrio_pin) {
|
|||
|
||||
bme280_temperature_fine_adjust = BME280_TEMPERATURE_ADJUSTMENT;
|
||||
|
||||
USR_IO_DDR |= bme280_cs_usrio_pin;
|
||||
USR_IO_DDR |= _BV(bme280_cs_usrio_pin);
|
||||
|
||||
SPI_DDR |= _BV(SPI_MOSI) | _BV(SPI_CLK);
|
||||
SPI_DDR &= ~(_BV(SPI_MISO));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue