sys/phydat: Remove deprecated print function#20529
Conversation
mguetschow
left a comment
There was a problem hiding this comment.
Thanks for all your cleanup work, seems good to me from (only) looking at the changeset. I'll trust CI on that one, too.
Co-authored-by: Marian Buschsieweke <maribu@users.noreply.github.com>
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 <bennet.blischke@haw-hamburg.de> 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_strandphydat_unit_to_str_verbose.In addition, I introduce a new unit test for the
phydat_unit_writefunction.Testing procedure
There are two tests here but I believe review & CI is enough.
make -C tests/sys/senml_phydat/ all-asan testmake -C tests/unittests/ all-asan tests-phydat testIssues/PRs references
Missing unit tests were overlooked and deprecation introduced in #18148