add calculations of T & P by ADC; Release mode still have problems

This commit is contained in:
Edward Emelianov
2023-05-15 22:58:39 +03:00
parent a67da85f55
commit 54155fdca9
10 changed files with 127 additions and 24 deletions

View File

@@ -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, &params.ID)){
DBG("Can't get ID\n");