Skip to content

Commit

Permalink
tests/psoc6/dut: Fixing typo.
Browse files Browse the repository at this point in the history
Signed-off-by: NikhitaR-IFX <Nikhita.Rajasekhar@infineon.com>
  • Loading branch information
NikhitaR-IFX authored and jaenrig-ifx committed Nov 7, 2023
1 parent 104a59b commit a4728f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tests/psoc6/dut/adc.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
adc0 = ADC(adc_pin0, sample_ns=1000)
adc1 = ADC(adc_pin1, sample_ns=1000)

print("Volatge (in microvolts) on pin", adc_pin0, "is max: ", adc0.read_uv() > 1000000)
print("Volatge (raw count) on pin", adc_pin0, "is max: ", adc0.read_u16() > 500)
print("Volatge (in microvolts) on pin", adc_pin1, "is max: ", adc1.read_uv() < 1000000)
print("Volatge (raw count) on pin", adc_pin1, "is max: ", adc1.read_u16() < 500)
print("Voltage (in microvolts) on pin", adc_pin0, "is max: ", adc0.read_uv() > 1000000)
print("Voltage (raw count) on pin", adc_pin0, "is max: ", adc0.read_u16() > 500)
print("Voltage (in microvolts) on pin", adc_pin1, "is max: ", adc1.read_uv() < 1000000)
print("Voltage (raw count) on pin", adc_pin1, "is max: ", adc1.read_u16() < 500)
8 changes: 4 additions & 4 deletions tests/psoc6/dut/adc.py.exp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Volatge (in microvolts) on pin P10_0 is max: True
Volatge (raw count) on pin P10_0 is max: True
Volatge (in microvolts) on pin P10_1 is max: True
Volatge (raw count) on pin P10_1 is max: True
Voltage (in microvolts) on pin P10_0 is max: True
Voltage (raw count) on pin P10_0 is max: True
Voltage (in microvolts) on pin P10_1 is max: True
Voltage (raw count) on pin P10_1 is max: True

0 comments on commit a4728f6

Please sign in to comment.