Skip to content

Commit 184aaca

Browse files
author
neil.hamilton
committed
Correct PS3000A_THRESHOLD_DIRECTIONS enum value for PS3000A_NONE
1 parent 6a10994 commit 184aaca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

picosdk/ps3000a.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def _define_digital_port():
146146

147147
ps3000a.PS3000A_THRESHOLD_DIRECTION = make_enum([
148148
("PS3000A_ABOVE", "PS3000A_INSIDE"),
149-
("PS3000A_BELOW", "PS3000A_OUTSIDE"),
149+
("PS3000A_BELOW", "PS3000A_OUTSIDE","PS3000A_NONE"),
150150
("PS3000A_RISING", "PS3000A_ENTER"),
151151
("PS3000A_FALLING", "PS3000A_EXIT"),
152152
("PS3000A_RISING_OR_FALLING", "PS3000A_ENTER_OR_EXIT"),
@@ -155,8 +155,7 @@ def _define_digital_port():
155155
"PS3000A_RISING_LOWER",
156156
"PS3000A_FALLING_LOWER"
157157
"PS3000A_POSITIVE_RUNT",
158-
"PS3000A_NEGATIVE_RUNT",
159-
"PS3000A_NONE"
158+
"PS3000A_NEGATIVE_RUNT"
160159
])
161160

162161
ps3000a.PS3000A_THRESHOLD_MODE = make_enum([

0 commit comments

Comments
 (0)