Skip to content

Commit

Permalink
Fixed BNE260 printout
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebiroll committed May 15, 2019
1 parent 1943179 commit e674b7d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/RAK811BreakBoard/BME680-board.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,15 @@ int8_t BME680_read( int16_t * temprature, uint32_t * pressure, uint32_t * humidi
*pressure = data.pressure;
*humidity = data.humidity;

printf("T: %.2f degC, P: %.2f hPa, H %.2f %%rH ", data.temperature / 100.0f,
data.pressure / 100.0f, data.humidity / 1000.0f );
//printf("T: %.2f degC, P: %.2f hPa, H %.2f %%rH ", data.temperature / 100.0f,
// data.pressure / 100.0f, data.humidity / 1000.0f );
printf("T: %d degC, P: %d hPa, H %d rH ", *temprature / 100,
*pressure / 100, *humidity / 1000 );
/* Avoid using measurements from an unstable heating setup */
if(data.status & BME680_GASM_VALID_MSK){
printf(", G: %d ohms", data.gas_resistance);
//e_printf(", G: %d ohms", data.gas_resistance);
*resistance = data.gas_resistance;
printf(", G: %d ohms", *resistance);
}

printf("\r\n");
Expand Down

0 comments on commit e674b7d

Please sign in to comment.