-
Notifications
You must be signed in to change notification settings - Fork 2k
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
sys/phydat: Remove deprecated print function #20529
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all your cleanup work, seems good to me from (only) looking at the changeset. I'll trust CI on that one, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, but see inline
Co-authored-by: Marian Buschsieweke <[email protected]>
5774e02
to
96e748d
Compare
Sorry I didn't spot this when it was deprecated: This deprecation severly impacts usability in Rust (see also RIOT-OS/rust-riot-wrappers#86). While exploring possibilities, might we remove _verbose, but keep (undeprecate) phydat_unit_to_str as a function that is only available if not HAS_FLASH_UTILS_ARCH? |
…tions An underlying API change[20529] made the functions impossible to satisfy; as they are already fallible (and may have returned None if the list were reduced), returning None is a compatible-by-the-letter way out. [20529]: RIOT-OS/RIOT#20529 Co-Authored-By: Teufelchen1 <[email protected]> Closes: #86
For continuation of my question, see discussion in RIOT-OS/rust-riot-wrappers#86. Seems that going push-copy is the right thing to do here. Rust APIs are adjusted, and CI seems to be happy so far except for formalities (thanks to tests being only run on the merged commits -- something I'm not too happy with b/c it breaks bisection, but it is certainly convenient here). |
Contribution description
Hej 🫏
This removes the deprecated functions
phydat_unit_to_str
andphydat_unit_to_str_verbose
.In addition, I introduce a new unit test for the
phydat_unit_write
function.Testing procedure
There are two tests here but I believe review & CI is enough.
make -C tests/sys/senml_phydat/ all-asan test
make -C tests/unittests/ all-asan tests-phydat test
Issues/PRs references
Missing unit tests were overlooked and deprecation introduced in #18148