From 05e2f22588f1f7d6c50de2950a057ebfb9ba9ea8 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Mon, 29 Jan 2024 23:32:56 +0100 Subject: [PATCH] Improve readability --- extdrv/bme280_humidity_sensor.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/extdrv/bme280_humidity_sensor.c b/extdrv/bme280_humidity_sensor.c index 18c852f..3d3cc56 100644 --- a/extdrv/bme280_humidity_sensor.c +++ b/extdrv/bme280_humidity_sensor.c @@ -139,10 +139,12 @@ int bme280_configure(struct bme280_sensor_config* conf) int ret = 0; char cmd_buf[CONF_BUF_SIZE] = { conf->addr, - BME280_REGS(ctrl_humidity), BME280_CTRL_HUM(conf->humidity_oversampling), + BME280_REGS(ctrl_humidity), + BME280_CTRL_HUM(conf->humidity_oversampling), BME280_REGS(ctrl_measure), - BME280_CTRL_MEA(conf->pressure_oversampling, conf->temp_oversampling, conf->mode), - BME280_REGS(config), BME280_CONFIG(conf->standby_len, conf->filter_coeff), + BME280_CTRL_MEA(conf->pressure_oversampling, conf->temp_oversampling, conf->mode), + BME280_REGS(config), + BME280_CONFIG(conf->standby_len, conf->filter_coeff), }; if (bme280_probe_sensor(conf) != 1) { -- 2.43.0