File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1183,4 +1183,6 @@ def changePowerSource(self, powerstate):
1183
1183
powerstate = 0x119
1184
1184
elif powerstate == "PICO_POWER_SUPPLY_NOT_CONNECTED" :
1185
1185
powerstate = 0x11A
1186
+ elif powerstate == "PICO_USB3_0_DEVICE_NON_USB3_0_PORT" :
1187
+ powerstate = 0x11E
1186
1188
self ._lowLevelChangePowerSource (powerstate )
Original file line number Diff line number Diff line change @@ -177,7 +177,8 @@ def _lowLevelOpenUnit(self, serialNumber):
177
177
# since the user should address this immediately, and we
178
178
# shouldn't let this go as a soft error
179
179
# but I think this should do for now
180
- if m == 0x11A :
180
+ # PICO_POWER_SUPPLY_NOT_CONNECTED or PICO_USB3_0_DEVICE_NON_USB3_0_PORT
181
+ if m == 0x11A or m == 0x11E :
181
182
self .changePowerSource (m )
182
183
else :
183
184
self .checkResult (m )
You can’t perform that action at this time.
0 commit comments