mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 11:54:30 +03:00
add calculations of T & P by ADC; Release mode still have problems
This commit is contained in:
@@ -197,6 +197,7 @@ static int write_reg(uint8_t reg, uint8_t val){
|
||||
|
||||
// read compensation data & write registers
|
||||
int BMP280_init(){
|
||||
IWDG->KR = IWDG_REFRESH;
|
||||
DBG("INI:\n");
|
||||
if(!read_reg(BMP280_REG_ID, ¶ms.ID)){
|
||||
DBG("Can't get ID\n");
|
||||
|
||||
Reference in New Issue
Block a user