Skip to content

Commit c6a4468

Browse files
committed
Update to sht4x v0.2.0
1 parent 3986407 commit c6a4468

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ defmodule CircuitsSim.MixProject do
5151
{:sgp30, github: "jjcarstens/sgp30", branch: "main", only: [:dev, :test]},
5252
{:cerlc, "~> 0.2.1"},
5353
{:aht20, "~> 0.4.0", only: [:dev, :test]},
54-
{:sht4x, github: "elixir-sensors/sht4x", branch: "main", only: [:dev, :test]},
54+
{:sht4x, "~> 0.2.0", only: [:dev, :test]},
5555
{:ex_doc, "~> 0.22", only: :docs, runtime: false},
5656
{:credo, "~> 1.6", only: :dev, runtime: false},
5757
{:dialyxir, "~> 1.2", only: :dev, runtime: false}

mix.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"makeup_erlang": {:hex, :makeup_erlang, "0.1.1", "3fcb7f09eb9d98dc4d208f49cc955a34218fc41ff6b84df7c75b3e6e533cc65f", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "174d0809e98a4ef0b3309256cbf97101c6ec01c4ab0b23e926a9e17df2077cbb"},
2121
"nimble_parsec": {:hex, :nimble_parsec, "1.3.1", "2c54013ecf170e249e9291ed0a62e5832f70a476c61da16f6aac6dca0189f2af", [:mix], [], "hexpm", "2682e3c0b2eb58d90c6375fc0cc30bc7be06f365bf72608804fb9cffa5e1b167"},
2222
"sgp30": {:git, "https://github.com/jjcarstens/sgp30.git", "f5332ea698c9be302530bc40c8c1c95ef732c552", [branch: "main"]},
23-
"sht4x": {:git, "https://github.com/elixir-sensors/sht4x.git", "5b3f0c66a270c8e7034a87dba149d547ab1fb3fc", [branch: "main"]},
23+
"sht4x": {:hex, :sht4x, "0.2.0", "34d12f7f66659347b5f16305316f138daf2289c5dbac8e5886cbbfe404406b9e", [:mix], [{:cerlc, "~> 0.2.0", [hex: :cerlc, repo: "hexpm", optional: false]}, {:circuits_i2c, "~> 1.0", [hex: :circuits_i2c, repo: "hexpm", optional: false]}, {:typed_struct, "~> 0.3.0", [hex: :typed_struct, repo: "hexpm", optional: false]}], "hexpm", "406ecbaaf61807c5ce9337a148cecbddc9e116d089aece925dcdd44d242da693"},
2424
"telemetry": {:hex, :telemetry, "1.2.1", "68fdfe8d8f05a8428483a97d7aab2f268aaff24b49e0f599faa091f1d4e7f61c", [:rebar3], [], "hexpm", "dad9ce9d8effc621708f99eac538ef1cbe05d6a874dd741de2e689c47feafed5"},
2525
"typed_struct": {:hex, :typed_struct, "0.3.0", "939789e3c1dca39d7170c87f729127469d1315dcf99fee8e152bb774b17e7ff7", [:mix], [], "hexpm", "c50bd5c3a61fe4e198a8504f939be3d3c85903b382bde4865579bc23111d1b6d"},
2626
}

test/circuits_sim/device/sht4x_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defmodule CircuitsSim.Device.SHT4XTest do
2727
SHT4XSim.set_temperature_c(i2c_bus, @i2c_address, 11.1)
2828
SHT4XSim.set_humidity_rh(i2c_bus, @i2c_address, 33.3)
2929

30-
{:ok, measurement} = SHT4X.measure(sht_pid)
30+
measurement = SHT4X.get_sample(sht_pid)
3131
assert_in_delta measurement.humidity_rh, 33.3, 0.1
3232
assert_in_delta measurement.temperature_c, 11.1, 0.1
3333
end

0 commit comments

Comments
 (0)