Skip to content

Conversation

@LithDefaux
Copy link

@LithDefaux LithDefaux commented Jul 4, 2025

  • Merged ADC-API changes
  • Modified the "read_single_sample" function to assign channel as u32 to avoid an unnecessary panic.
  • Modified a test to properly asses the set value
    The original listener test was asserting only the first argument of the .schedule_upcall which is not the sample.
    Modifying the function to set sample as the first argument conflicts with the assessments in /peripherals/adc/src/test.rs
    The test was modified to check for the third argument which was the where the sample should be checked for and now the test asserts the value correctly.

Signed-off-by: LithTheFox denispavel94@gmail.com

@LithDefaux LithDefaux closed this Jul 4, 2025
@LithDefaux LithDefaux reopened this Jul 4, 2025
Merged ADC-API changes
Modified the "read_single_sample" function to assign channel as u32 to avoid an unnecessary panic.

Signed-off-by: LithTheFox <thelittrion@gmail.com>
Reordered arguments so that sample is first and can be read by listener.get()

Signed-off-by: LithTheFox thelittrion@gmail.com
(this commit is mostly to fix the sign off error)

Signed-off-by: Pavel Denis-Iulian <denispavel94@gmail.com>
Needed github details can't take real name and adress

Signed-off-by: LithTheFox <thelittrion@gmail.com>
Signed-off-by: LithTheFox thelittrion@gmail.com
The original listener test was asserting only the first argument of the .schedule_upcall which is not the sample.
Modifying the function to set sample as the first argument conflicts with the assessments in /peripherals/adc/src/test.rs
The test was modified to check for the third argument which was the where the sample should be checked for and now the test asserts the value correctly.

Signed-off-by: LithTheFox thelittrion@gmail.com
@LithDefaux LithDefaux mentioned this pull request Jul 7, 2025
Unnecessary channel cast already usize
Signed-off-by: LithTheFox thelittrion@gmail.com
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.

1 participant