Skip to content

Commit c938408

Browse files
JPEWdevEmantor
authored andcommitted
driver/usbstoragedriver: Change mode enum to strings
Changes the Mode enumeration to use strings instead of integers. This will make it easier to pass the enumeration as an argument to labgrid-client by the user. Signed-off-by: Joshua Watt <[email protected]>
1 parent 42ffd06 commit c938408

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

labgrid/driver/usbstoragedriver.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717

1818

1919
class Mode(enum.Enum):
20-
DD = 1
21-
BMAPTOOL = 2
20+
DD = "dd"
21+
BMAPTOOL = "bmaptool"
22+
23+
def __str__(self):
24+
return self.value
2225

2326

2427
@target_factory.reg_driver

0 commit comments

Comments
 (0)