Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Unified Diff: tools/usb_gadget/__main__.py

Issue 412243002: [usb_gadget p09] Software updates over HTTP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/usb_gadget/package.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/usb_gadget/__main__.py
diff --git a/tools/usb_gadget/__main__.py b/tools/usb_gadget/__main__.py
index 20998c5832d19d0bb8187b03c35f51dd4d9e9288..4ca6ad9a104f67c284ad737b6560e8fc8f7f14e2 100644
--- a/tools/usb_gadget/__main__.py
+++ b/tools/usb_gadget/__main__.py
@@ -25,6 +25,9 @@ def ParseArgs():
parser.add_argument(
'--hardware', default='beaglebone-black',
help='Hardware configuration.')
+ parser.add_argument(
+ '--start-claimed',
+ help='Start with the device claimed by this client.')
return parser.parse_args()
@@ -34,6 +37,7 @@ def main():
server.interface = args.interface
server.port = args.port
server.hardware = args.hardware
+ server.claimed_by = args.start_claimed
addrs = netifaces.ifaddresses(server.interface)
ip_address = addrs[netifaces.AF_INET][0]['addr']
« no previous file with comments | « no previous file | tools/usb_gadget/package.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698