Skip to content

Commit

Permalink
Merge pull request #638 from maaad/master
Browse files Browse the repository at this point in the history
Fix typo in scd4x_set_ambient_pressure
  • Loading branch information
UncleRus authored Jun 21, 2024
2 parents 10c6bab + 7cc3999 commit bda2198
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/scd4x/scd4x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion components/scd4x/scd4x.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bda2198

Please sign in to comment.