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):
11831183 powerstate = 0x119
11841184 elif powerstate == "PICO_POWER_SUPPLY_NOT_CONNECTED" :
11851185 powerstate = 0x11A
1186+ elif powerstate == "PICO_USB3_0_DEVICE_NON_USB3_0_PORT" :
1187+ powerstate = 0x11E
11861188 self ._lowLevelChangePowerSource (powerstate )
Original file line number Diff line number Diff line change @@ -177,7 +177,8 @@ def _lowLevelOpenUnit(self, serialNumber):
177177 # since the user should address this immediately, and we
178178 # shouldn't let this go as a soft error
179179 # 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 :
181182 self .changePowerSource (m )
182183 else :
183184 self .checkResult (m )
You can’t perform that action at this time.
0 commit comments