From d015d3fe3ee67a5ab7bc02bb00d1c857f8ff63ab Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 5 Jun 2024 16:35:33 +0300 Subject: [PATCH 1/2] fix typo in scd4x_set_ambient_pressure from scd4x.c --- components/scd4x/scd4x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/scd4x/scd4x.c b/components/scd4x/scd4x.c index d199bc88..e9d97def 100644 --- a/components/scd4x/scd4x.c +++ b/components/scd4x/scd4x.c @@ -267,7 +267,7 @@ esp_err_t scd4x_set_sensor_altitude(i2c_dev_t *dev, uint16_t altitude) return execute_cmd(dev, CMD_SET_SENSOR_ALTITUDE, 1, &altitude, 1, NULL, 0); } -esp_err_t scd4x_set_ambient_ressure(i2c_dev_t *dev, uint16_t pressure) +esp_err_t scd4x_set_ambient_pressure(i2c_dev_t *dev, uint16_t pressure) { return execute_cmd(dev, CMD_SET_AMBIENT_PRESSURE, 1, &pressure, 1, NULL, 0); } From 7cc39999f60c5215091bae2f1bcaf1d0a6c66bd7 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 5 Jun 2024 16:35:56 +0300 Subject: [PATCH 2/2] fix typo in scd4x_set_ambient_pressure from scd4x.h --- components/scd4x/scd4x.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/scd4x/scd4x.h b/components/scd4x/scd4x.h index cd963643..90d98069 100644 --- a/components/scd4x/scd4x.h +++ b/components/scd4x/scd4x.h @@ -237,7 +237,7 @@ esp_err_t scd4x_set_sensor_altitude(i2c_dev_t *dev, uint16_t altitude); * Convert value to Pa by: value * 100 * @return `ESP_OK` on success */ -esp_err_t scd4x_set_ambient_ressure(i2c_dev_t *dev, uint16_t pressure); +esp_err_t scd4x_set_ambient_pressure(i2c_dev_t *dev, uint16_t pressure); /** * @brief Perform forced recalibration.