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

Add AD5259 driver and test script #20

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Commits on Mar 1, 2024

  1. Add AD5259 driver and test script

    Tested on hardware with expected responses, though resistances not physically measured
    josephnobes-stfc committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    5d53939 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. Fix test in other file by using MagicMock rather than Mock

    Oddly, using Mock() for smbus actually broke the test in the ad5272 file
    that was executed after this test. Changing the filename to make this
    test occur last also fixed this issue, so the ad5259 test was actually
    interfering with the other device's test file.
    
    Changing smbus to MagicMock() appears to sort the issue. It seems
    tests are not as segregated as I'd imagined.
    josephnobes-stfc committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    9fef8dc View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

  1. Fix failed voltage readback when voltage_A or voltage_B was 0

    Test also added to catch this
    josephnobes-stfc committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    a72110c View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2024

  1. Configuration menu
    Copy the full SHA
    af690ab View commit details
    Browse the repository at this point in the history