Skip to content

Commit

Permalink
Use Sensirion website URL for datasheet to get latest
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Jul 14, 2023
1 parent 652e87c commit 60ed7f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/sht4x/calc.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ defmodule SHT4X.Calc do
Check the CRC on the temperature/humidity report
The 8-bit CRC checksum transmitted after each data word. See Sensirion docs:
* [Data sheet](https://cdn-learn.adafruit.com/assets/assets/000/097/511/original/Sensirion_Gas-Sensors_SGP40_Datasheet.pdf) - Section 4
* [Datasheet](https://developer.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/2_Humidity_Sensors/Datasheets/Sensirion_Humidity_Sensors_SHT4x_Datasheet.pdf)
* https://github.com/Sensirion/embedded-common/blob/1ac7c72c895d230c6f1375865f3b7161ce6b665a/sensirion_common.c#L60
## Examples
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule SHT4X.MixProject do

@version "0.1.4"
@source_url "https://github.com/elixir-sensors/sht4x"
@sht4x_datasheet_url "https://cdn-learn.adafruit.com/assets/assets/000/099/223/original/Sensirion_Humidity_Sensors_SHT4x_Datasheet.pdf"
@sht4x_datasheet_url "https://developer.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/2_Humidity_Sensors/Datasheets/Sensirion_Humidity_Sensors_SHT4x_Datasheet.pdf"

def project do
[
Expand Down Expand Up @@ -78,7 +78,7 @@ defmodule SHT4X.MixProject do
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Data sheet" => @sht4x_datasheet_url
"Datasheet" => @sht4x_datasheet_url
}
}
end
Expand Down

0 comments on commit 60ed7f5

Please sign in to comment.