Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions digiCamControlPython.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def __getCmd(self, cmd: str):
print("Error: %s" % r[109:]) # Format output message
return -1
else: # Success
returnValue = r[96:-6]
returnValue = r[99:-6]
print("Current %s: %s" % (cmd, returnValue)) # Format output message
return returnValue

Expand All @@ -189,8 +189,7 @@ def __listCmd(self, cmd: str):
print("Error: %s" % r[109:]) # Format output message
return -1
else: # Success
returnList = r[96:-6].split(",") # Format response and turn into a list
returnList = [e[1:-1] for e in returnList] # Remove "" from string
returnList = r[99:-6].replace('"','').split(",") # Format response, Remove " from string, and turn into a list
print("List of all possible %ss: %s" % (cmd, returnList)) # Format output message
return returnList

Expand Down Expand Up @@ -234,4 +233,4 @@ def __listCmd(self, cmd: str):
assert(camera.setWhitebalance(temp) == 0)
assert(camera.getWhitebalance() == temp)

print("End unit tests.")
print("End unit tests.")