Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expanded with more tests and slightly improved internal code #9

Merged
merged 6 commits into from
Dec 1, 2024

Conversation

FloppyDisck
Copy link
Owner

No description provided.

@FloppyDisck
Copy link
Owner Author

@haraldkubota Do you think you could run this version and confirm that it works? I don't have an SHT31 currently.

@haraldkubota
Copy link

haraldkubota commented Oct 22, 2024

Tested and I cannot compile it:

$ cargo build
 Compiling rp-sht30 v0.1.0 (/home/harald/src/rust/rp2040/sht30)

error: no global memory allocator found but one is required; link to std or add `#[global_allocator]` to a static item that implements the GlobalAlloc trait

I use

#![no_std]
#![no_main]

and Cargo.toml contains

sht31 = { git = "https://github.com/FloppyDisck/SHT31-rs.git", branch = "improvement" }

Somewhere is a hidden alloc happening...

@FloppyDisck
Copy link
Owner Author

@haraldkubota Thanks for the help! I ended up adding an example for an esp32 for quick testing on future versions. You can always add an rp2040 example if youre interested.

@FloppyDisck FloppyDisck merged commit e5a4fff into main Dec 1, 2024
6 checks passed
@FloppyDisck FloppyDisck deleted the improvement branch December 1, 2024 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants