-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
sensors: Add channel specifiers #71093
sensors: Add channel specifiers #71093
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.
Seems reasonable to me, please run clang-format and push.
1084abb
to
f5bb842
Compare
If it's not too much trouble it'd be nice to separate the clang-formatting into a different commit. The new channel struct looks good to me. |
f5bb842
to
0ed3ff9
Compare
yeah of course, I can split the commits or drop the unchanged areas that clang-format touched as a whole... seems clang-format version dependent on what it does sometimes |
0ed3ff9
to
8274a4d
Compare
ddbc1cd
to
55f461a
Compare
Has turned into a bit of a minor rabbit hole and might not finish before ZDS at this point |
b7426ac
to
01c66ec
Compare
fd46712
to
eae752b
Compare
Updates dht_polling sample to new sensor API. Depends on zephyrproject-rtos#71093 and zephyrproject-rtos#71160. Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
06e35e1
to
0e684a0
Compare
Update 4: Fix sensor shell build issues |
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.
I still see the issue with the Sensor Shell command, however, it's easy to fix and there are many PRs depending on this one. I'm approving it since I'm good with merging in and follow-up with subsequent PRs to complement it.
PR with Shell fix: #72542
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.
My concerns have been addressed, thanks!
It may be best to include the sensor shell fix from 72542 here already, but leaving that to the sensor maintainers.
375b0e6
to
8a72f32
Compare
Update 5
|
41a7816
to
b1c0e7e
Compare
Use a structured channel specifier rather than a single enum when specifying channels to read in the new read/decoder API. Replaces usages of a seperate channel and channel_index parameter where previously used with a struct sensor_chan_spec. Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
b1c0e7e
to
c8df175
Compare
Updates dht_polling sample to new sensor API. Depends on zephyrproject-rtos#71093 and zephyrproject-rtos#71160. Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
Updates dht_polling sample to new sensor API. Depends on zephyrproject-rtos#71093 and zephyrproject-rtos#71160. Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
Use a structured channel specifier rather than a single enum when specifying channels to read in the new read/decoder API.
Implements a slight variation of #63830